C# Класс SIPSorcery.Sys.AppState

Наследование: IConfigurationSectionHandler
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
CurrentDirectory string
NewLine string
logger log4net.ILog

Открытые методы

Метод Описание
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, XmlNode configSection ) : object

Handler for processing the App.Config file and retrieving a custom XML node.

GetConfigNodeValue ( XmlNode configNode, string nodeName ) : string
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 ) : X509Certificate2

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.

Приватные методы

Метод Описание
AppState ( ) : System
GetEncryptedSettingsCertificate ( ) : X509Certificate2

Описание методов

ConfigureConsoleLogger() публичный статический Метод

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.
public static ConfigureConsoleLogger ( ) : void
Результат void

Create() публичный Метод

Handler for processing the App.Config file and retrieving a custom XML node.
public Create ( object parent, object context, XmlNode configSection ) : object
parent object
context object
configSection System.Xml.XmlNode
Результат object

GetConfigNodeValue() публичный статический Метод

public static GetConfigNodeValue ( XmlNode configNode, string nodeName ) : string
configNode System.Xml.XmlNode
nodeName string
Результат string

GetConfigSetting() публичный статический Метод

Wrapper around the object holding the application configuration settings extracted from the App.Config file.
public static GetConfigSetting ( string key ) : string
key string The name of the configuration setting wanted.
Результат string

GetConfigSettingAsBool() публичный статический Метод

public static GetConfigSettingAsBool ( string key ) : bool
key string
Результат bool

GetLogger() публичный статический Метод

public static GetLogger ( string logName ) : log4net.ILog
logName string
Результат log4net.ILog

GetSection() публичный статический Метод

public static GetSection ( string sectionName ) : object
sectionName string
Результат object

LoadCertificate() публичный статический Метод

Attempts to load an X509 certificate from a Windows OS certificate store.
public static LoadCertificate ( StoreLocation storeLocation, string certificateSubject, bool checkValidity ) : X509Certificate2
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.
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

ToAbsoluteDirectoryPath() публичный статический Метод

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.
public static ToAbsoluteDirectoryPath ( string directoryPath ) : string
directoryPath string The directory path to check.
Результат string

ToAbsoluteFilePath() публичный статический Метод

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.
public static ToAbsoluteFilePath ( string filePath ) : string
filePath string The file path to check.
Результат string

Описание свойств

CurrentDirectory публичное статическое свойство

public static string CurrentDirectory
Результат string

NewLine публичное статическое свойство

public static string NewLine
Результат string

logger публичное статическое свойство

public static ILog,log4net logger
Результат log4net.ILog