C# Class WinFormsUnityBootStrapper.SimpleUnityBootstrapper

Mostrar archivo Open project: jeffras/Prism-4-with-WinForms

Public Methods

Method Description
Run ( ) : void

Runs the bootstrapper process.

Run ( bool runWithDefaultConfiguration ) : void

Run the bootstrapper process.

Protected Methods

Method Description
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.

Method Details

ConfigureContainer() protected method

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

ConfigureDefaultRegionBehaviors() protected method

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

ConfigureModuleCatalog() protected method

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

ConfigureRegionAdapterMappings() protected method

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
return Microsoft.Practices.Prism.Regions.RegionAdapterMappings

ConfigureServiceLocator() protected method

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

CreateContainer() protected method

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

CreateLogger() protected method

protected CreateLogger ( ) : ILoggerFacade
return ILoggerFacade

CreateModuleCatalog() protected method

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

CreateShell() protected abstract method

protected abstract CreateShell ( ) : Form
return System.Windows.Forms.Form

InitializeModules() protected method

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
return void

InitializeShell() protected abstract method

protected abstract InitializeShell ( ) : void
return void

RegisterFrameworkExceptionTypes() protected method

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

RegisterTypeIfMissing() protected method

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.
return void

Run() public method

Runs the bootstrapper process.
public Run ( ) : void
return void

Run() public method

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