Class ApplicationBootstrapper
Bootstrapper implementation for a WPF application.
Namespace: Sartorius.SAF.Presentation
Assembly: Sartorius.SAF.Presentation.Application.dll
Syntax
public class ApplicationBootstrapper : MefBootstrapper
Constructors
View SourceApplicationBootstrapper(IConfigurationRoot)
Initializes a new instance of the ApplicationBootstrapper class.
Declaration
public ApplicationBootstrapper(IConfigurationRoot configurationRoot)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Configuration.IConfigurationRoot | configurationRoot |
ApplicationBootstrapper(Boolean, IConfigurationRoot)
Initializes a new instance of the ApplicationBootstrapper class.
Declaration
public ApplicationBootstrapper(bool useLoginDialog, IConfigurationRoot configurationRoot)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | useLoginDialog | Indicates whether to use the login dialog. |
Microsoft.Extensions.Configuration.IConfigurationRoot | configurationRoot | The configuration root object |
Properties
View SourceCloseSplashScreen
A action for closing a splash screen.
Declaration
public Action CloseSplashScreen { get; set; }
Property Value
Type | Description |
---|---|
System.Action |
ExceptionHandlingFacade
Gets or sets the IExceptionHandlingFacade for the application.
Declaration
protected IExceptionHandlingFacade ExceptionHandlingFacade { get; set; }
Property Value
Type | Description |
---|---|
IExceptionHandlingFacade |
LockConfiguration
Gets or sets the configuration for the applications lock mechanism.
Declaration
public LockConfiguration LockConfiguration { get; }
Property Value
Type | Description |
---|---|
LockConfiguration |
ProgressNotification
Gets or sets the IProgressNotification.
Declaration
public IProgressNotification ProgressNotification { get; set; }
Property Value
Type | Description |
---|---|
IProgressNotification |
ProgressNotificationArgs
Parent initialization of progress arguments.
Declaration
public ProgressNotificationArgs ProgressNotificationArgs { get; set; }
Property Value
Type | Description |
---|---|
ProgressNotificationArgs |
ProgressNotify
Action for notify about progress changes.
Declaration
public Action<ProgressNotificationArgs> ProgressNotify { get; set; }
Property Value
Type | Description |
---|---|
System.Action<ProgressNotificationArgs> |
Methods
View SourceConfigureRegionAdapterMappings()
Configures the region adapter mappings. Using by notify initialization progress : step 4 Configure Regions
Declaration
protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
Returns
Type | Description |
---|---|
RegionAdapterMappings | The instance containing the mappings. |
Overrides
View SourceCreateAggregateCatalog()
Using by notify initialization progress : step 2 Create Catalogs
Declaration
protected override AggregateCatalog CreateAggregateCatalog()
Returns
Type | Description |
---|---|
System.ComponentModel.Composition.Hosting.AggregateCatalog |
Overrides
View SourceCreateApplicationController()
Creates the controller for this application.
Declaration
protected virtual IApplicationController CreateApplicationController()
Returns
Type | Description |
---|---|
IApplicationController | The application controller. |
CreateContainer()
Using by notify initialization progress : step 3 Create Container
Declaration
protected override CompositionContainer CreateContainer()
Returns
Type | Description |
---|---|
System.ComponentModel.Composition.Hosting.CompositionContainer |
Overrides
View SourceCreateExceptionHandlingFacade()
Creates the IExceptionHandlingFacade of the application. CloseSplashScreen
Declaration
public virtual IExceptionHandlingFacade CreateExceptionHandlingFacade()
Returns
Type | Description |
---|---|
IExceptionHandlingFacade | The ExceptionHandlingFacade. |
CreateModuleCatalog()
Using by notify initialization progress : step 1 Create Modules
Declaration
protected override IModuleCatalog CreateModuleCatalog()
Returns
Type | Description |
---|---|
IModuleCatalog |
Overrides
View SourceCreateUserInformation()
Creates container with information about the current user.
Declaration
[Obsolete("Use the new IAuthenticationProvider API")]
protected virtual CurrentUser CreateUserInformation()
Returns
Type | Description |
---|---|
CurrentUser |
InitializeApplication()
Initialize and start the application.
Declaration
protected override void InitializeApplication()
Overrides
View SourceRegisterBootstrapperProvidedTypes()
Registers all the types necessary for the SAF to work.
Declaration
protected override void RegisterBootstrapperProvidedTypes()
Overrides
View SourceRestoreSkinSettings()
Restores the skin settings.
Declaration
protected virtual void RestoreSkinSettings()
RestoreUISettings()
Restores the saved UI settings.
Declaration
protected virtual void RestoreUISettings()