IPlugin Interface |
Namespace: VirtualRadar.Interface
The IPlugin type exposes the following members.
Name | Description | |
---|---|---|
HasOptions |
Gets a value indicating that the plugin has user-configurable settings.
| |
Id |
Gets the unique identifier of the plugin.
| |
Name |
Gets the name of the plugin. This is only shown to the user, it is otherwise unused by Virtual Radar Server.
| |
PluginFolder |
Gets or sets the folder that the plugin has been installed into.
| |
Status |
Gets a short string describing the state of the plugin (e.g. Disabled, Enabled, Writing to XYZ etc.).
| |
StatusDescription | ||
Version |
Gets the version number of the plugin. This is only shown to the user, it is otherwise unused by Virtual Radar Server.
|
Name | Description | |
---|---|---|
GuiThreadStartup |
Called by VRS on the GUI thread after Startup(PluginStartupParameters) has been called.
| |
RegisterImplementations |
Called by VRS during the early stages of program startup to give the plugin a chance to register
its own implementations of the program interfaces. This is called before the UI has been built up, do not
make GUI calls from here.
| |
ShowWinFormsOptionsUI |
Called by VRS when the user wants to change the options for the application. This will not be called if HasOptions
is false. You must present the options using WinForms. The function will be called on the GUI thread.
| |
Shutdown |
Called by VRS when the program is closing down, before the web server etc. have been destroyed. This may be called
on a background thread, do not make GUI calls from within here.
| |
Startup |
Called by VRS towards the end of the splash screen, after the web server etc. have been built up but before the
main window is displayed. This is called on a background thread. Do not make any calls that must be made on the
GUI thread from here.
|
Name | Description | |
---|---|---|
StatusChanged |
Raised by the plugin whenever Status or StatusChanged has been updated by the plugin.
|
Plugin libraries are loaded by Virtual Radar Server during startup. The program looks for DLLs whose name matches VirtualRadar.Plugin.*.dll in subfolders below the Virtual Radar Server "Plugins" folder. It loads each DLL into the process and then searches for a public class that implements this interface. If it can find one then it instantiates the object implementing the interface and makes calls upon it at various points in the life of the application to give the plugin the opportunity to change the way the program behaves.