C# 클래스 CmisSync.Lib.Config.Config

파일 보기 프로젝트 열기: OpenDataSpace/CmisSync

Private Properties

프로퍼티 타입 설명
Config System
Config System
CreateDefaultLog4NetElement System.Xml.XmlElement
Load Config

공개 메소드들

메소드 설명
CreateInitialConfig ( string fullPath ) : Config

Create an initial XML configuration file with default settings and zero remote folders.

CreateInitialListOfGloballyHiddenRepoNames ( ) : List

Creates the initial list of globally hidden repo names.

CreateInitialListOfGloballyIgnoredFileNames ( ) : List

Creates the initial list of globally ignored file names.

CreateInitialListOfGloballyIgnoredFolderNames ( ) : List

Creates the initial list of globally ignored folder names.

CreateOrLoadByPath ( string fullPath ) : Config

Creates the config or loads the config by path.

GetConfigPath ( ) : string

Path of the folder where configuration files are. These files are in particular the XML configuration file, the database files, and the log file.

GetFoldersPath ( ) : string

Path where the synchronized folders are stored by default.

GetFullPath ( ) : string

Gets the full path to this config file.

GetHomePath ( ) : string

Path to the user's home folder.

GetLog4NetConfig ( ) : XmlElement

Log4net configuration, as an XML tree readily usable by Log4net.

GetLogFilePath ( ) : string

Get the configured path to the log file.

GetLogFilePath ( string configPath ) : string

Gets the log file path.

GetOperationsLogFilePath ( string configPath ) : string

Gets the operations log file path.

GetRepoInfo ( string displayName ) : RepoInfo

Gets the configured folder with the given name or null if no folder with this name exists.

Save ( ) : void

Save the currently loaded (in memory) configuration back to the XML file.

SetLog4NetConfig ( XmlNode node ) : void

Sets a new XmlNode as Log4NetConfig. Is useful for config migration

비공개 메소드들

메소드 설명
Config ( ) : System
Config ( string fullPath ) : System
CreateDefaultLog4NetElement ( string logFilePath, string operationsLogFilePath ) : XmlElement
Load ( string fullPath ) : Config

메소드 상세

CreateInitialConfig() 공개 정적인 메소드

Create an initial XML configuration file with default settings and zero remote folders.
public static CreateInitialConfig ( string fullPath ) : Config
fullPath string /// Absolute full path to config file ///
리턴 Config

CreateInitialListOfGloballyHiddenRepoNames() 공개 정적인 메소드

Creates the initial list of globally hidden repo names.
public static CreateInitialListOfGloballyHiddenRepoNames ( ) : List
리턴 List

CreateInitialListOfGloballyIgnoredFileNames() 공개 정적인 메소드

Creates the initial list of globally ignored file names.
public static CreateInitialListOfGloballyIgnoredFileNames ( ) : List
리턴 List

CreateInitialListOfGloballyIgnoredFolderNames() 공개 정적인 메소드

Creates the initial list of globally ignored folder names.
public static CreateInitialListOfGloballyIgnoredFolderNames ( ) : List
리턴 List

CreateOrLoadByPath() 공개 정적인 메소드

Creates the config or loads the config by path.
public static CreateOrLoadByPath ( string fullPath ) : Config
fullPath string /// Full path. ///
리턴 Config

GetConfigPath() 공개 메소드

Path of the folder where configuration files are. These files are in particular the XML configuration file, the database files, and the log file.
public GetConfigPath ( ) : string
리턴 string

GetFoldersPath() 공개 메소드

Path where the synchronized folders are stored by default.
public GetFoldersPath ( ) : string
리턴 string

GetFullPath() 공개 메소드

Gets the full path to this config file.
public GetFullPath ( ) : string
리턴 string

GetHomePath() 공개 메소드

Path to the user's home folder.
public GetHomePath ( ) : string
리턴 string

GetLog4NetConfig() 공개 메소드

Log4net configuration, as an XML tree readily usable by Log4net.
public GetLog4NetConfig ( ) : XmlElement
리턴 System.Xml.XmlElement

GetLogFilePath() 공개 메소드

Get the configured path to the log file.
public GetLogFilePath ( ) : string
리턴 string

GetLogFilePath() 공개 정적인 메소드

Gets the log file path.
public static GetLogFilePath ( string configPath ) : string
configPath string Config path.
리턴 string

GetOperationsLogFilePath() 공개 정적인 메소드

Gets the operations log file path.
public static GetOperationsLogFilePath ( string configPath ) : string
configPath string Config path.
리턴 string

GetRepoInfo() 공개 메소드

Gets the configured folder with the given name or null if no folder with this name exists.
public GetRepoInfo ( string displayName ) : RepoInfo
displayName string The name of the repoInfo Name.
리턴 RepoInfo

Save() 공개 메소드

Save the currently loaded (in memory) configuration back to the XML file.
public Save ( ) : void
리턴 void

SetLog4NetConfig() 공개 메소드

Sets a new XmlNode as Log4NetConfig. Is useful for config migration
public SetLog4NetConfig ( XmlNode node ) : void
node System.Xml.XmlNode log4net xml config section
리턴 void