C# Class Microsoft.Practices.Prism.Modularity.ModuleManager

Component responsible for coordinating the modules' type loading and module initialization process.
Inheritance: IModuleManager, IDisposable
ファイルを表示 Open project: xperiandri/PortablePrism Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Calls Dispose(bool)

LoadModule ( string moduleName ) : void

Loads and initializes the module on the ModuleCatalog with the name moduleName.

ModuleManager ( IModuleInitializer moduleInitializer, IModuleCatalog moduleCatalog, ILoggerFacade loggerFacade ) : Microsoft.Practices.Prism.Logging

Initializes an instance of the ModuleManager class.

Run ( ) : void

Initializes the modules marked as InitializationMode.WhenAvailable on the ModuleCatalog.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the associated IModuleTypeLoaders.

LoadModulesThatAreReadyForLoad ( ) : void

Loads the modules that are not intialized and have their dependencies loaded.

ModuleNeedsRetrieval ( ModuleInfo moduleInfo ) : bool

Checks if the module needs to be retrieved before it's initialized.

Private Methods

Method Description
AreDependenciesLoaded ( ModuleInfo moduleInfo ) : bool
BeginRetrievingModule ( ModuleInfo moduleInfo ) : void
GetTypeLoaderForModule ( ModuleInfo moduleInfo ) : IModuleTypeLoader
HandleModuleTypeLoadingError ( ModuleInfo moduleInfo, Exception exception ) : void
IModuleTypeLoader_LoadModuleCompleted ( object sender, LoadModuleCompletedEventArgs e ) : void
IModuleTypeLoader_ModuleDownloadProgressChanged ( object sender, ModuleDownloadProgressChangedEventArgs e ) : void
InitializeModule ( ModuleInfo moduleInfo ) : void
LoadModuleTypes ( IEnumerable moduleInfos ) : void
LoadModulesWhenAvailable ( ) : void
RaiseLoadModuleCompleted ( LoadModuleCompletedEventArgs e ) : void
RaiseLoadModuleCompleted ( ModuleInfo moduleInfo, Exception error ) : void
RaiseModuleDownloadProgressChanged ( ModuleDownloadProgressChangedEventArgs e ) : void

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Calls Dispose(bool)
public Dispose ( ) : void
return void

Dispose() protected method

Disposes the associated IModuleTypeLoaders.
protected Dispose ( bool disposing ) : void
disposing bool When , it is being called from the Dispose method.
return void

LoadModule() public method

Loads and initializes the module on the ModuleCatalog with the name moduleName.
public LoadModule ( string moduleName ) : void
moduleName string Name of the module requested for initialization.
return void

LoadModulesThatAreReadyForLoad() protected method

Loads the modules that are not intialized and have their dependencies loaded.
protected LoadModulesThatAreReadyForLoad ( ) : void
return void

ModuleManager() public method

Initializes an instance of the ModuleManager class.
public ModuleManager ( IModuleInitializer moduleInitializer, IModuleCatalog moduleCatalog, ILoggerFacade loggerFacade ) : Microsoft.Practices.Prism.Logging
moduleInitializer IModuleInitializer Service used for initialization of modules.
moduleCatalog IModuleCatalog Catalog that enumerates the modules to be loaded and initialized.
loggerFacade ILoggerFacade Logger used during the load and initialization of modules.
return Microsoft.Practices.Prism.Logging

ModuleNeedsRetrieval() protected method

Checks if the module needs to be retrieved before it's initialized.
protected ModuleNeedsRetrieval ( ModuleInfo moduleInfo ) : bool
moduleInfo ModuleInfo Module that is being checked if needs retrieval.
return bool

Run() public method

Initializes the modules marked as InitializationMode.WhenAvailable on the ModuleCatalog.
public Run ( ) : void
return void