C# 클래스 Microsoft.Practices.Prism.Modularity.ModuleManager

Component responsible for coordinating the modules' type loading and module initialization process.
상속: IModuleManager, IDisposable
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 공개 메소드

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

Dispose() 보호된 메소드

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

LoadModule() 공개 메소드

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.
리턴 void

LoadModulesThatAreReadyForLoad() 보호된 메소드

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

ModuleManager() 공개 메소드

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.
리턴 Microsoft.Practices.Prism.Logging

ModuleNeedsRetrieval() 보호된 메소드

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.
리턴 bool

Run() 공개 메소드

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