Summer.Batch.Common.Settings.SettingsManager Class Reference

Utility class to manage application settings. More...

Public Member Functions

string Get (string key)
 Retrieve setting by its key. More...
 
ConnectionStringSettings GetConnectionString (string name)
 Retrives a connection string by its name. More...
 

Properties

string ConfigurationFile [set]
 Sets an external configuration file as the primary source for settings and connection strings. More...
 
string this[string key] [get]
 Retrieves a setting by its name. More...
 

Detailed Description

Utility class to manage application settings.

Settings and connection strings are read from the application configuration file. They can also be overriden by providing an extra configuration file using ConfigurationFile. In that case, settings and connection strings are first read in the external configuration file, then in the application configuration file.

Member Function Documentation

string Summer.Batch.Common.Settings.SettingsManager.Get ( string  key)

Retrieve setting by its key.

Parameters
key
Returns
ConnectionStringSettings Summer.Batch.Common.Settings.SettingsManager.GetConnectionString ( string  name)

Retrives a connection string by its name.

Parameters
namethe name of the connection string to retrieve
Returns
the connection string, or null if it was not found

Property Documentation

string Summer.Batch.Common.Settings.SettingsManager.ConfigurationFile
set

Sets an external configuration file as the primary source for settings and connection strings.

string Summer.Batch.Common.Settings.SettingsManager.this[string key]
get

Retrieves a setting by its name.

Parameters
keythe name of the setting to retrieve
Returns
the value of the setting or null if it has none

The documentation for this class was generated from the following file:
  • Summer.Batch.Common/Settings/SettingsManager.cs