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

Implements the IModuleInitializer interface. Handles loading of a module based on a type.
상속: IModuleInitializer
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 메소드들

메소드 설명
HandleModuleInitializationError ( ModuleInfo moduleInfo, string assemblyName, Exception exception ) : void

Handles any exception ocurred in the module Initialization process, logs the error using the ILoggerFacade and throws a ModuleInitializeException. This method can be overriden to provide a different behavior.

ModuleInitializer ( IServiceLocator serviceLocator, ILoggerFacade loggerFacade ) : System

Initializes a new instance of ModuleInitializer.

보호된 메소드들

메소드 설명
CreateModule ( ModuleInfo moduleInfo ) : IModule

Uses the container to resolve a new IModule by specifying its Type.

CreateModule ( string typeName ) : IModule

Uses the container to resolve a new IModule by specifying its Type.

비공개 메소드들

메소드 설명
Initialize ( ModuleInfo moduleInfo ) : void

메소드 상세

CreateModule() 보호된 메소드

Uses the container to resolve a new IModule by specifying its Type.
protected CreateModule ( ModuleInfo moduleInfo ) : IModule
moduleInfo ModuleInfo The module to create.
리턴 IModule

CreateModule() 보호된 메소드

Uses the container to resolve a new IModule by specifying its Type.
protected CreateModule ( string typeName ) : IModule
typeName string The type name to resolve. This type must implement .
리턴 IModule

HandleModuleInitializationError() 공개 메소드

Handles any exception ocurred in the module Initialization process, logs the error using the ILoggerFacade and throws a ModuleInitializeException. This method can be overriden to provide a different behavior.
public HandleModuleInitializationError ( ModuleInfo moduleInfo, string assemblyName, Exception exception ) : void
moduleInfo ModuleInfo The module metadata where the error happenened.
assemblyName string The assembly name.
exception System.Exception The exception thrown that is the cause of the current error.
리턴 void

ModuleInitializer() 공개 메소드

Initializes a new instance of ModuleInitializer.
public ModuleInitializer ( IServiceLocator serviceLocator, ILoggerFacade loggerFacade ) : System
serviceLocator IServiceLocator The container that will be used to resolve the modules by specifying its type.
loggerFacade ILoggerFacade The logger to use.
리턴 System