C# Class Host.CivikeyStandardHost

Singleton host. Its private constructor is safe (no exceptions can be thrown except an out of memory: we can safely ignore this pathological case).
Inheritance: CK.Context.AbstractContextHost, IHostInformation, IHostHelp
Mostrar archivo Open project: Invenietis/ck-certified

Public Properties

Property Type Description
Instance CivikeyStandardHost

Private Properties

Property Type Description
CivikeyStandardHost System
GetDevelopmentPath System.Uri
OnApplyDone void
OnSystemConfigurationPropertyChanged void
OnUserConfigurationPropertyChanged void

Public Methods

Method Description
CreateContext ( ) : IContext
FireShowHostHelp ( ) : void
GetDefaultHelp ( ) : Stream
GetSystemConfigAddress ( ) : Uri

Protected Methods

Method Description
GetDefaultContextProfile ( bool saving ) : Uri>.KeyValuePair
GetDefaultUserConfigAddress ( bool saving ) : Uri

Private Methods

Method Description
CivikeyStandardHost ( CK.Windows.App.CKAppParameters parameters ) : System

The SubAppName is the name of the package (Standard, Steria etc...) using that, we can have different contexts/userconfs for each packages installed on the computer.

GetDevelopmentPath ( string fileName ) : Uri

If there is a civikey.exe.config file and that it contains a IsStandAloneInstance set to true, we set the default config path to ApplicationFolder/Configurations/FileName

OnApplyDone ( object sender, CK.Plugin.ApplyDoneEventArgs e ) : void
OnSystemConfigurationPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
OnUserConfigurationPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Method Details

CreateContext() public method

public CreateContext ( ) : IContext
return IContext

FireShowHostHelp() public method

public FireShowHostHelp ( ) : void
return void

GetDefaultContextProfile() protected method

protected GetDefaultContextProfile ( bool saving ) : Uri>.KeyValuePair
saving bool
return Uri>.KeyValuePair

GetDefaultHelp() public method

public GetDefaultHelp ( ) : Stream
return Stream

GetDefaultUserConfigAddress() protected method

protected GetDefaultUserConfigAddress ( bool saving ) : Uri
saving bool
return System.Uri

GetSystemConfigAddress() public method

public GetSystemConfigAddress ( ) : Uri
return System.Uri

Property Details

Instance public_oe static_oe property

Singleton instance.
public static CivikeyStandardHost,Host Instance
return CivikeyStandardHost