C# Класс Microsoft.Practices.Prism.Bootstrapper

Base class that provides a basic bootstrapping sequence and hooks that specific implementations can override
This class must be overriden to provide application specific configuration.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Run ( ) : void

Runs the bootstrapper process.

Run ( bool runWithDefaultConfiguration ) : void

Run the bootstrapper process.

Защищенные методы

Метод Описание
ConfigureModuleCatalog ( ) : void

Configures the IModuleCatalog used by Prism.

ConfigureServiceLocator ( ) : void

Configures the LocatorProvider for the Microsoft.Practices.ServiceLocation.ServiceLocator.

CreateModuleCatalog ( ) : IModuleCatalog

Creates the IModuleCatalog used by Prism.

The base implementation returns a new ModuleCatalog.

CreateShell ( ) : DependencyObject

Creates the shell or main window of the application.

If the returned instance is a DependencyObject, the Bootstrapper will attach the default IRegionManager of the application in its RegionManager.RegionManagerProperty attached property in order to be able to add regions by using the RegionManager.RegionNameProperty attached property from XAML.

InitializeModules ( ) : void

Initializes the modules. May be overwritten in a derived class to use a custom Modules Catalog

InitializeShell ( ) : void

Initializes the shell.

RegisterFrameworkExceptionTypes ( ) : void

Registers the Types of the Exceptions that are not considered root exceptions by the ExceptionExtensions.

Приватные методы

Метод Описание
CreateLogger ( ) : ILoggerFacade

Описание методов

ConfigureModuleCatalog() защищенный Метод

Configures the IModuleCatalog used by Prism.
protected ConfigureModuleCatalog ( ) : void
Результат void

ConfigureServiceLocator() защищенный абстрактный Метод

Configures the LocatorProvider for the Microsoft.Practices.ServiceLocation.ServiceLocator.
protected abstract ConfigureServiceLocator ( ) : void
Результат void

CreateModuleCatalog() защищенный Метод

Creates the IModuleCatalog used by Prism.
The base implementation returns a new ModuleCatalog.
protected CreateModuleCatalog ( ) : IModuleCatalog
Результат IModuleCatalog

CreateShell() защищенный абстрактный Метод

Creates the shell or main window of the application.
If the returned instance is a DependencyObject, the Bootstrapper will attach the default IRegionManager of the application in its RegionManager.RegionManagerProperty attached property in order to be able to add regions by using the RegionManager.RegionNameProperty attached property from XAML.
protected abstract CreateShell ( ) : DependencyObject
Результат System.Windows.DependencyObject

InitializeModules() защищенный Метод

Initializes the modules. May be overwritten in a derived class to use a custom Modules Catalog
protected InitializeModules ( ) : void
Результат void

InitializeShell() защищенный Метод

Initializes the shell.
protected InitializeShell ( ) : void
Результат void

RegisterFrameworkExceptionTypes() защищенный Метод

Registers the Types of the Exceptions that are not considered root exceptions by the ExceptionExtensions.
protected RegisterFrameworkExceptionTypes ( ) : void
Результат void

Run() публичный Метод

Runs the bootstrapper process.
public Run ( ) : void
Результат void

Run() публичный абстрактный Метод

Run the bootstrapper process.
public abstract Run ( bool runWithDefaultConfiguration ) : void
runWithDefaultConfiguration bool If , registers default /// Composite Application Library services in the container. This is the default behavior.
Результат void