C# Класс WinFormsUnityBootStrapper.SimpleUnityBootstrapper

Показать файл Открыть проект

Открытые методы

Метод Описание
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