C# Класс NConfiguration.NConfigurationManager

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

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

Метод Описание
GetAppSetting ( string key ) : string

Mono has a bug so on mono projects GetAppSetting is mandatory Gets the app setting. https://bugzilla.novell.com/show_bug.cgi?id=545588

GetConnectionString ( string key ) : string

Mono has a bug so on mono projects GetConnectionString is mandatory https://bugzilla.novell.com/show_bug.cgi?id=545588

GetEnvironment ( ) : string
GetKeyCandidates ( ) : IEnumerable
Initialize ( ) : void
Initialize ( string defaultEnvironment ) : void

Fall back to the given environment name as suppose to whatever "default" is pointing to.

Switch ( string environment ) : void
ValidateAllConfigurations ( ) : IList>.Dictionary

Validates all the environment configuration files

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

Метод Описание
FindRootDirectory ( ) : void
GetCurrentEnvironmentConfiguration ( ) : Configuration
HasEqualAppSettings ( Configuration configuration, Configuration compareConfiguration ) : bool
HasEqualAppSettingsAndValues ( Configuration configuration, Configuration compareConfiguration ) : bool
HasEqualConnectionStrings ( Configuration configuration, Configuration compareConfiguration ) : bool
HasEqualConnectionStringsAndValues ( Configuration configuration, Configuration compareConfiguration ) : bool
InitializeIntern ( ) : void
NConfigurationManager ( ) : System
OnChanged ( object sender, FileSystemEventArgs e ) : void
OnRenamed ( object sender, RenamedEventArgs e ) : void
OpenConfiguration ( string path ) : Configuration
Refresh ( ) : void

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

GetAppSetting() публичный статический Метод

Mono has a bug so on mono projects GetAppSetting is mandatory Gets the app setting. https://bugzilla.novell.com/show_bug.cgi?id=545588
public static GetAppSetting ( string key ) : string
key string Key.
Результат string

GetConnectionString() публичный статический Метод

Mono has a bug so on mono projects GetConnectionString is mandatory https://bugzilla.novell.com/show_bug.cgi?id=545588
public static GetConnectionString ( string key ) : string
key string Key.
Результат string

GetEnvironment() публичный статический Метод

public static GetEnvironment ( ) : string
Результат string

GetKeyCandidates() публичный статический Метод

public static GetKeyCandidates ( ) : IEnumerable
Результат IEnumerable

Initialize() публичный статический Метод

public static Initialize ( ) : void
Результат void

Initialize() публичный статический Метод

Fall back to the given environment name as suppose to whatever "default" is pointing to.
public static Initialize ( string defaultEnvironment ) : void
defaultEnvironment string
Результат void

Switch() публичный статический Метод

public static Switch ( string environment ) : void
environment string
Результат void

ValidateAllConfigurations() публичный статический Метод

Validates all the environment configuration files
public static ValidateAllConfigurations ( ) : IList>.Dictionary
Результат IList>.Dictionary