C# Класс CmisSync.Lib.Config.Config

Показать файл Открыть проект

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