C# Class NConfiguration.NConfigurationManager

Show file Open project: Q42/NConfigurationManager

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

GetAppSetting() public static method

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.
return string

GetConnectionString() public static method

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.
return string

GetEnvironment() public static method

public static GetEnvironment ( ) : string
return string

GetKeyCandidates() public static method

public static GetKeyCandidates ( ) : IEnumerable
return IEnumerable

Initialize() public static method

public static Initialize ( ) : void
return void

Initialize() public static method

Fall back to the given environment name as suppose to whatever "default" is pointing to.
public static Initialize ( string defaultEnvironment ) : void
defaultEnvironment string
return void

Switch() public static method

public static Switch ( string environment ) : void
environment string
return void

ValidateAllConfigurations() public static method

Validates all the environment configuration files
public static ValidateAllConfigurations ( ) : IList>.Dictionary
return IList>.Dictionary