IPluginRegisterImplementations Method |
Namespace: VirtualRadar.Interface
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.