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.
Show file Open project: xperiandri/PortablePrism Class Usage Examples

Public Methods

Method Description
Run ( ) : void

Runs the bootstrapper process.

Run ( bool runWithDefaultConfiguration ) : void

Run the bootstrapper process.

Protected Methods

Method 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

Method Description
CreateLogger ( ) : ILoggerFacade

Method Details

ConfigureModuleCatalog() protected method

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

ConfigureServiceLocator() protected abstract method

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

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

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
return System.Windows.DependencyObject

InitializeModules() protected method

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

InitializeShell() protected method

Initializes the shell.
protected InitializeShell ( ) : void
return void

RegisterFrameworkExceptionTypes() protected method

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

Run() public method

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

Run() public abstract method

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