C# Class Axiom.Core.PluginManager

Summary description for PluginManager.
Inheritance: DisposableObject
Datei anzeigen Open project: WolfgangSt/axiom Class Usage Examples

Public Methods

Method Description
GetAssemblyTitle ( Type type ) : string
LoadAll ( ) : void

Loads all plugins specified in the plugins section of the app.config file.

LoadDirectory ( string path ) : void
UnloadAll ( ) : void

Unloads all currently loaded plugins.

Protected Methods

Method Description
ScanForPlugins ( ) : IList

Scans for plugin files in the current directory.

ScanForPlugins ( string folder ) : IList

Scans for plugin files in the current directory.

dispose ( bool disposeManagedResources ) : void

Private Methods

Method Description
IsValidModule ( string file ) : bool

Checks if the given Module contains managed code

LoadPlugin ( ObjectCreator creator ) : IPlugin

Loads a plugin of the given class name from the given assembly, and calls Initialize() on it. This function does NOT add the plugin to the PluginManager's list of plugins.

PluginManager ( ) : System

Internal constructor. This class cannot be instantiated externally.

Method Details

GetAssemblyTitle() public static method

public static GetAssemblyTitle ( Type type ) : string
type System.Type
return string

LoadAll() public method

Loads all plugins specified in the plugins section of the app.config file.
public LoadAll ( ) : void
return void

LoadDirectory() public method

public LoadDirectory ( string path ) : void
path string
return void

ScanForPlugins() protected method

Scans for plugin files in the current directory.
protected ScanForPlugins ( ) : IList
return IList

ScanForPlugins() protected method

Scans for plugin files in the current directory.
protected ScanForPlugins ( string folder ) : IList
folder string
return IList

UnloadAll() public method

Unloads all currently loaded plugins.
public UnloadAll ( ) : void
return void

dispose() protected method

protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
return void