C# Class CmisSync.Lib.Config.Config

Afficher le fichier Open project: OpenDataSpace/CmisSync

Private Properties

Свойство Type Description
Config System
Config System
CreateDefaultLog4NetElement System.Xml.XmlElement
Load Config

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Config ( ) : System
Config ( string fullPath ) : System
CreateDefaultLog4NetElement ( string logFilePath, string operationsLogFilePath ) : XmlElement
Load ( string fullPath ) : Config

Method Details

CreateInitialConfig() public static méthode

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 ///
Résultat Config

CreateInitialListOfGloballyHiddenRepoNames() public static méthode

Creates the initial list of globally hidden repo names.
public static CreateInitialListOfGloballyHiddenRepoNames ( ) : List
Résultat List

CreateInitialListOfGloballyIgnoredFileNames() public static méthode

Creates the initial list of globally ignored file names.
public static CreateInitialListOfGloballyIgnoredFileNames ( ) : List
Résultat List

CreateInitialListOfGloballyIgnoredFolderNames() public static méthode

Creates the initial list of globally ignored folder names.
public static CreateInitialListOfGloballyIgnoredFolderNames ( ) : List
Résultat List

CreateOrLoadByPath() public static méthode

Creates the config or loads the config by path.
public static CreateOrLoadByPath ( string fullPath ) : Config
fullPath string /// Full path. ///
Résultat Config

GetConfigPath() public méthode

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
Résultat string

GetFoldersPath() public méthode

Path where the synchronized folders are stored by default.
public GetFoldersPath ( ) : string
Résultat string

GetFullPath() public méthode

Gets the full path to this config file.
public GetFullPath ( ) : string
Résultat string

GetHomePath() public méthode

Path to the user's home folder.
public GetHomePath ( ) : string
Résultat string

GetLog4NetConfig() public méthode

Log4net configuration, as an XML tree readily usable by Log4net.
public GetLog4NetConfig ( ) : XmlElement
Résultat System.Xml.XmlElement

GetLogFilePath() public méthode

Get the configured path to the log file.
public GetLogFilePath ( ) : string
Résultat string

GetLogFilePath() public static méthode

Gets the log file path.
public static GetLogFilePath ( string configPath ) : string
configPath string Config path.
Résultat string

GetOperationsLogFilePath() public static méthode

Gets the operations log file path.
public static GetOperationsLogFilePath ( string configPath ) : string
configPath string Config path.
Résultat string

GetRepoInfo() public méthode

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.
Résultat RepoInfo

Save() public méthode

Save the currently loaded (in memory) configuration back to the XML file.
public Save ( ) : void
Résultat void

SetLog4NetConfig() public méthode

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