C# Class 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.
Afficher le fichier Open project: xperiandri/PortablePrism Class Usage Examples

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

Private Methods

Méthode Description
CreateLogger ( ) : ILoggerFacade

Method Details

ConfigureModuleCatalog() protected méthode

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

ConfigureServiceLocator() protected abstract méthode

Configures the LocatorProvider for the Microsoft.Practices.ServiceLocation.ServiceLocator.
protected abstract ConfigureServiceLocator ( ) : void
Résultat void

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

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
Résultat System.Windows.DependencyObject

InitializeModules() protected méthode

Initializes the modules. May be overwritten in a derived class to use a custom Modules Catalog
protected InitializeModules ( ) : void
Résultat void

InitializeShell() protected méthode

Initializes the shell.
protected InitializeShell ( ) : void
Résultat void

RegisterFrameworkExceptionTypes() protected méthode

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

Run() public méthode

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

Run() public abstract méthode

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