Property | Type | Description | |
---|---|---|---|
CurrentDirectory | string | ||
NewLine | string | ||
logger | log4net.ILog |
Method | Description | |
---|---|---|
ConfigureConsoleLogger ( ) : void |
Configures the logging object to use a console logger. This would normally be used as a fallback when either the application does not have any logging configuration or there is an error in it.
|
|
Create ( object parent, object context, |
Handler for processing the App.Config file and retrieving a custom XML node.
|
|
GetConfigNodeValue ( |
||
GetConfigSetting ( string key ) : string |
Wrapper around the object holding the application configuration settings extracted from the App.Config file.
|
|
GetConfigSettingAsBool ( string key ) : bool | ||
GetLogger ( string logName ) : log4net.ILog | ||
GetSection ( string sectionName ) : object | ||
LoadCertificate ( StoreLocation storeLocation, string certificateSubject, bool checkValidity ) : |
Attempts to load an X509 certificate from a Windows OS certificate store.
|
|
ToAbsoluteDirectoryPath ( string directoryPath ) : string |
Checks whether a directory path represents a relative or absolute path and if it's relative converts it to an absolute one by prefixing it with the application's base directory.
|
|
ToAbsoluteFilePath ( string filePath ) : string |
Checks whether a file path represents a relative or absolute path and if it's relative converts it to an absolute one by prefixing it with the application's base directory.
|
Method | Description | |
---|---|---|
AppState ( ) : System | ||
GetEncryptedSettingsCertificate ( ) : |
public static ConfigureConsoleLogger ( ) : void | ||
return | void |
public Create ( object parent, object context, |
||
parent | object | |
context | object | |
configSection | ||
return | object |
public static GetConfigNodeValue ( |
||
configNode | ||
nodeName | string | |
return | string |
public static GetConfigSetting ( string key ) : string | ||
key | string | The name of the configuration setting wanted. |
return | string |
public static GetConfigSettingAsBool ( string key ) : bool | ||
key | string | |
return | bool |
public static GetLogger ( string logName ) : log4net.ILog | ||
logName | string | |
return | log4net.ILog |
public static GetSection ( string sectionName ) : object | ||
sectionName | string | |
return | object |
public static LoadCertificate ( StoreLocation storeLocation, string certificateSubject, bool checkValidity ) : |
||
storeLocation | StoreLocation | The certificate store to load from, can be CurrentUser or LocalMachine. |
certificateSubject | string | The subject name of the certificate to attempt to load. |
checkValidity | bool | Checks if the certificate is current and has a verifiable certificate issuer list. Should be /// set to false for self issued certificates. |
return |
public static ToAbsoluteDirectoryPath ( string directoryPath ) : string | ||
directoryPath | string | The directory path to check. |
return | string |
public static ToAbsoluteFilePath ( string filePath ) : string | ||
filePath | string | The file path to check. |
return | string |