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

Component responsible for coordinating the modules' type loading and module initialization process.
Inheritance: IModuleManager, IDisposable
Afficher le fichier Open project: xperiandri/PortablePrism Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

Dispose() protected méthode

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

LoadModule() public méthode

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.
Résultat void

LoadModulesThatAreReadyForLoad() protected méthode

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

ModuleManager() public méthode

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.
Résultat Microsoft.Practices.Prism.Logging

ModuleNeedsRetrieval() protected méthode

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.
Résultat bool

Run() public méthode

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