C# 클래스 SIPSorcery.Sys.AppState

상속: IConfigurationSectionHandler
파일 보기 프로젝트 열기: sipsorcery/sipsorcery

공개 프로퍼티들

프로퍼티 타입 설명
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