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

Configuration of a CmisSync synchronized folder. It can be found in the XML configuration file.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
DEFAULT_POLL_INTERVAL int
DEFAULT_URL_ADDRESS string

Защищенные свойства (Protected)

Свойство Тип Описание
Logger log4net.ILog

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

Метод Описание
AddFolder ( RepoInfo repoInfo ) : void

Add a synchronized folder to the configuration.

Config ( string fullPath ) : System

Constructor.

GetFolder ( string name ) : SyncConfig.Folder

Get folder based on name.

GetFolder ( string RemoteUrl, string UserName, string RepositoryId ) : SyncConfig.Folder

Get a folder based on RemoteUrl, UserName, and RepositoryId.

GetLog4NetConfig ( ) : XmlElement

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

GetLogFilePath ( ) : string

Get the configured path to the log file.

RemoveFolder ( string repoName ) : void

Remove a synchronized folder from the configuration.

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

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

Метод Описание
CreateConfigFromScratch ( ) : void

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

CreateInitialConfigFile ( ) : void

Create the initial XML configuration file.

GetLogLevel ( ) : string
Load ( ) : void
createDefaultLog4NetElement ( ) : XmlElement

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

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

Add a synchronized folder to the configuration.
public AddFolder ( RepoInfo repoInfo ) : void
repoInfo RepoInfo
Результат void

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

Constructor.
public Config ( string fullPath ) : System
fullPath string
Результат System

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

Get folder based on name.
public GetFolder ( string name ) : SyncConfig.Folder
name string
Результат SyncConfig.Folder

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

Get a folder based on RemoteUrl, UserName, and RepositoryId.
public GetFolder ( string RemoteUrl, string UserName, string RepositoryId ) : SyncConfig.Folder
RemoteUrl string
UserName string
RepositoryId string
Результат SyncConfig.Folder

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

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

Remove a synchronized folder from the configuration.
public RemoveFolder ( string repoName ) : void
repoName string
Результат void

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
Результат void

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

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

Default poll interval. It is used for any newly created synchronized folder. In milliseconds.
public static int DEFAULT_POLL_INTERVAL
Результат int

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

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

Logger защищенное статическое свойство

Log.
protected static ILog,log4net Logger
Результат log4net.ILog