C# 클래스 WinFormsUnityBootStrapper.SimpleUnityBootstrapper

파일 보기 프로젝트 열기: jeffras/Prism-4-with-WinForms

공개 메소드들

메소드 설명
Run ( ) : void

Runs the bootstrapper process.

Run ( bool runWithDefaultConfiguration ) : void

Run the bootstrapper process.

보호된 메소드들

메소드 설명
ConfigureContainer ( ) : void

Configures the IUnityContainer. May be overwritten in a derived class to add specific type mappings required by the application.

ConfigureDefaultRegionBehaviors ( ) : IRegionBehaviorFactory

Configures the IRegionBehaviorFactory. This will be the list of default behaviors that will be added to a region.

ConfigureModuleCatalog ( ) : void

Configures the IModuleCatalog used by Prism.

ConfigureRegionAdapterMappings ( ) : RegionAdapterMappings

Configures the default region adapter mappings to use in the application, in order to adapt UI controls defined in XAML to use a region and register it automatically. May be overwritten in a derived class to add specific mappings required by the application.

ConfigureServiceLocator ( ) : void

Configures the LocatorProvider for the ServiceLocator.

CreateContainer ( ) : IUnityContainer

Creates the IUnityContainer that will be used as the default container.

CreateLogger ( ) : ILoggerFacade
CreateModuleCatalog ( ) : IModuleCatalog

Creates the IModuleCatalog used by Prism.

The base implementation returns a new ModuleCatalog.

CreateShell ( ) : Form
InitializeModules ( ) : void

Initializes the modules. May be overwritten in a derived class to use custom module loading and avoid using an IModuleLoader and IModuleEnumerator.

InitializeShell ( ) : void
RegisterFrameworkExceptionTypes ( ) : void

Registers in the IUnityContainer the Type of the Exceptions that are not considered root exceptions by the ExceptionExtensions.

RegisterTypeIfMissing ( Type fromType, Type toType, bool registerAsSingleton ) : void

Registers a type in the container only if that type was not already registered.

메소드 상세

ConfigureContainer() 보호된 메소드

Configures the IUnityContainer. May be overwritten in a derived class to add specific type mappings required by the application.
protected ConfigureContainer ( ) : void
리턴 void

ConfigureDefaultRegionBehaviors() 보호된 메소드

Configures the IRegionBehaviorFactory. This will be the list of default behaviors that will be added to a region.
protected ConfigureDefaultRegionBehaviors ( ) : IRegionBehaviorFactory
리턴 IRegionBehaviorFactory

ConfigureModuleCatalog() 보호된 메소드

Configures the IModuleCatalog used by Prism.
protected ConfigureModuleCatalog ( ) : void
리턴 void

ConfigureRegionAdapterMappings() 보호된 메소드

Configures the default region adapter mappings to use in the application, in order to adapt UI controls defined in XAML to use a region and register it automatically. May be overwritten in a derived class to add specific mappings required by the application.
protected ConfigureRegionAdapterMappings ( ) : RegionAdapterMappings
리턴 Microsoft.Practices.Prism.Regions.RegionAdapterMappings

ConfigureServiceLocator() 보호된 메소드

Configures the LocatorProvider for the ServiceLocator.
protected ConfigureServiceLocator ( ) : void
리턴 void

CreateContainer() 보호된 메소드

Creates the IUnityContainer that will be used as the default container.
protected CreateContainer ( ) : IUnityContainer
리턴 IUnityContainer

CreateLogger() 보호된 메소드

protected CreateLogger ( ) : ILoggerFacade
리턴 ILoggerFacade

CreateModuleCatalog() 보호된 메소드

Creates the IModuleCatalog used by Prism.
The base implementation returns a new ModuleCatalog.
protected CreateModuleCatalog ( ) : IModuleCatalog
리턴 IModuleCatalog

CreateShell() 보호된 추상적인 메소드

protected abstract CreateShell ( ) : Form
리턴 System.Windows.Forms.Form

InitializeModules() 보호된 메소드

Initializes the modules. May be overwritten in a derived class to use custom module loading and avoid using an IModuleLoader and IModuleEnumerator.
protected InitializeModules ( ) : void
리턴 void

InitializeShell() 보호된 추상적인 메소드

protected abstract InitializeShell ( ) : void
리턴 void

RegisterFrameworkExceptionTypes() 보호된 메소드

Registers in the IUnityContainer the Type of the Exceptions that are not considered root exceptions by the ExceptionExtensions.
protected RegisterFrameworkExceptionTypes ( ) : void
리턴 void

RegisterTypeIfMissing() 보호된 메소드

Registers a type in the container only if that type was not already registered.
protected RegisterTypeIfMissing ( Type fromType, Type toType, bool registerAsSingleton ) : void
fromType System.Type The interface type to register.
toType System.Type The type implementing the interface.
registerAsSingleton bool Registers the type as a singleton.
리턴 void

Run() 공개 메소드

Runs the bootstrapper process.
public Run ( ) : void
리턴 void

Run() 공개 메소드

Run the bootstrapper process.
public Run ( bool runWithDefaultConfiguration ) : void
runWithDefaultConfiguration bool
리턴 void