C# Class Crow.Library.Bootstrappers.Bootstrapper

Class that handles the loading operations for the library.
显示文件 Open project: msusur/Crowfx Class Usage Examples

Protected Properties

Property Type Description
_container System.ComponentModel.Composition.Hosting.CompositionContainer

Public Methods

Method Description
Bootstrapper ( ) : System
Bootstrapper ( IAssemblyLoader loader ) : System
Clear ( ) : void

Clears the container.

Start ( ) : void

Starts the application and starts module loading.

Stop ( ) : void

Stops the application and releases the unnecessery components.

Protected Methods

Method Description
LoadModules ( IEnumerable assemblies ) : void

Starts the application with the given assemblies.

UnloadModules ( ) : void

Unloads the modules and components.

Private Methods

Method Description
CanAddAssembly ( Assembly assembly ) : bool
GetByAttributes ( IEnumerable startupInstallers, Type type ) : IEnumerable
Install ( IModule installer ) : void
IterateNodes ( DependencyNode node, AttributeContext context, IModule item, bool &added ) : void
OrderInstallerDependencies ( IEnumerable startupInstallers ) : IEnumerable
VisitAndYieldReturnTree ( DependencyNode>.Dictionary nodes ) : IEnumerable

Method Details

Bootstrapper() public method

public Bootstrapper ( ) : System
return System

Bootstrapper() public method

public Bootstrapper ( IAssemblyLoader loader ) : System
loader IAssemblyLoader
return System

Clear() public method

Clears the container.
public Clear ( ) : void
return void

LoadModules() protected method

Starts the application with the given assemblies.
protected LoadModules ( IEnumerable assemblies ) : void
assemblies IEnumerable
return void

Start() public method

Starts the application and starts module loading.
public Start ( ) : void
return void

Stop() public method

Stops the application and releases the unnecessery components.
public Stop ( ) : void
return void

UnloadModules() protected method

Unloads the modules and components.
protected UnloadModules ( ) : void
return void

Property Details

_container protected_oe property

protected CompositionContainer,System.ComponentModel.Composition.Hosting _container
return System.ComponentModel.Composition.Hosting.CompositionContainer