LoadedModule

Overview

LoadedModule is a base class that represents loaded plugin module. Descendants of this class is used to store information related to a module like plugins list or assembly reference.

Use Case

You can use this class to get access to individual module:

LoadedModule module = moduleManager.LoadModule("MyPlugin.dll");

foreach (PluginDescriptor plugin in module.Plugins)
{
  Console.WriteLine(string.Format("Name: {0} Description: {1}", plugin.Name, plugin.Description));
}

Location


 

constructor  protected

Creates a new instance of the class.

 

constructor

 

LoadedModule()

 

Sub New()

CreateInstance

Creates a new instance of a specified plugin.

 

method CreateInstance(aPluginDescriptor: PluginDescriptor): IHYCrossPlatformPlugin

 

IHYCrossPlatformPlugin CreateInstance(PluginDescriptor aPluginDescriptor)

 

Function CreateInstance(aPluginDescriptor As PluginDescriptor) As IHYCrossPlatformPlugin

Parameters:

  • aPluginDescriptor: Reference to a plugin descriptor.

Dispose

Releases resources allocated by the object.

 

method Dispose

 

void Dispose()

 

Sub Dispose()

FileName

Returns the file name of a loaded plugin module.

 

property FileName: String read;

 

String FileName { get; }

 

ReadOnly Property FileName() As String

ModuleController

Returns reference to an instance of the cross platform module controller.

 

property ModuleController: IHYCrossPlatformModuleController read;

 

IHYCrossPlatformModuleController ModuleController { get; }

 

ReadOnly Property ModuleController() As IHYCrossPlatformModuleController

Name

Returns simple name of a loaded plugin module.

 

property Name: String read;

 

String Name { get; }

 

ReadOnly Property Name() As String

Plugins

Returns a list of the plugins that is contained in a loaded module.

 

property Plugins: PluginList read;

 

PluginList Plugins { get; }

 

ReadOnly Property Plugins() As PluginList

 

FileName

Returns the file name of a loaded plugin module.

 

property FileName: String read;

 

String FileName { get; }

 

ReadOnly Property FileName() As String

ModuleController

Returns reference to an instance of the cross platform module controller.

 

property ModuleController: IHYCrossPlatformModuleController read;

 

IHYCrossPlatformModuleController ModuleController { get; }

 

ReadOnly Property ModuleController() As IHYCrossPlatformModuleController

Name

Returns simple name of a loaded plugin module.

 

property Name: String read;

 

String Name { get; }

 

ReadOnly Property Name() As String

Plugins

Returns a list of the plugins that is contained in a loaded module.

 

property Plugins: PluginList read;

 

PluginList Plugins { get; }

 

ReadOnly Property Plugins() As PluginList

 

constructor  protected

Creates a new instance of the class.

 

constructor

 

LoadedModule()

 

Sub New()

CreateInstance

Creates a new instance of a specified plugin.

 

method CreateInstance(aPluginDescriptor: PluginDescriptor): IHYCrossPlatformPlugin

 

IHYCrossPlatformPlugin CreateInstance(PluginDescriptor aPluginDescriptor)

 

Function CreateInstance(aPluginDescriptor As PluginDescriptor) As IHYCrossPlatformPlugin

Parameters:

  • aPluginDescriptor: Reference to a plugin descriptor.

Dispose

Releases resources allocated by the object.

 

method Dispose

 

void Dispose()

 

Sub Dispose()