Click or drag to resize
IPluginRegisterImplementations Method
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.

Namespace: VirtualRadar.Interface
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
void RegisterImplementations(
	IClassFactory classFactory
)

Parameters

classFactory
Type: InterfaceFactoryIClassFactory
Remarks

VRS works by declaring interfaces for all of the important classes in VirtualRadar.Interfaces and then registering implementations of those interfaces with a class factory. Whenever the program wants to obtain an implementation of an interface it calls the class factory.

This method is called after VRS has registered all of its implementations for the interfaces but before any of them have been instantiated. If you want to replace one or more of the standard implementations of the interfaces with your own version then this is the time to do so.

Plugins are loaded in a random order. It is possible that another plugin could override your implementation of a VRS class with its own. Also please note that any exception thrown by this method will result in your plugin being disabled and the class factory reset back to how it was before your plugin made any changes.

See Also