C# Class Hiro.Loaders.ModuleLoader

Represents a type that loads IModule instances into memory.
Datei anzeigen Open project: philiplaureano/Hiro Class Usage Examples

Public Methods

Method Description
LoadModule ( IModule module ) : void

Loads a module into memory so that it can configure a dependency map.

LoadModulesFrom ( string targetDirectory, string fileSpec = "*.dll" ) : void

Loads modules from the given targetDirectory.

ModuleLoader ( DependencyMap dependencyMap ) : System

Initializes a new instance of the ModuleLoader class.

Method Details

LoadModule() public method

Loads a module into memory so that it can configure a dependency map.
public LoadModule ( IModule module ) : void
module IModule /// The target module. ///
return void

LoadModulesFrom() public method

Loads modules from the given targetDirectory.
public LoadModulesFrom ( string targetDirectory, string fileSpec = "*.dll" ) : void
targetDirectory string The target directory that contains the assemblies.
fileSpec string The file search pattern that describes the names of the assemblies that will be loaded.
return void

ModuleLoader() public method

Initializes a new instance of the ModuleLoader class.
public ModuleLoader ( DependencyMap dependencyMap ) : System
dependencyMap DependencyMap The dependency map that will be configured by the module loader.
return System