C# Class WinFormsUnityBootStrapper.SimpleUnityBootstrapper

Afficher le fichier Open project: jeffras/Prism-4-with-WinForms

Méthodes publiques

Méthode Description
Run ( ) : void

Runs the bootstrapper process.

Run ( bool runWithDefaultConfiguration ) : void

Run the bootstrapper process.

Méthodes protégées

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

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

ConfigureDefaultRegionBehaviors() protected méthode

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

ConfigureModuleCatalog() protected méthode

Configures the IModuleCatalog used by Prism.
protected ConfigureModuleCatalog ( ) : void
Résultat void

ConfigureRegionAdapterMappings() protected méthode

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

ConfigureServiceLocator() protected méthode

Configures the LocatorProvider for the ServiceLocator.
protected ConfigureServiceLocator ( ) : void
Résultat void

CreateContainer() protected méthode

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

CreateLogger() protected méthode

protected CreateLogger ( ) : ILoggerFacade
Résultat ILoggerFacade

CreateModuleCatalog() protected méthode

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

CreateShell() protected abstract méthode

protected abstract CreateShell ( ) : Form
Résultat System.Windows.Forms.Form

InitializeModules() protected méthode

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

InitializeShell() protected abstract méthode

protected abstract InitializeShell ( ) : void
Résultat void

RegisterFrameworkExceptionTypes() protected méthode

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

RegisterTypeIfMissing() protected méthode

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

Run() public méthode

Runs the bootstrapper process.
public Run ( ) : void
Résultat void

Run() public méthode

Run the bootstrapper process.
public Run ( bool runWithDefaultConfiguration ) : void
runWithDefaultConfiguration bool
Résultat void