C# Class AccidentalFish.ApplicationSupport.Core.Configuration.ApplicationConfiguration

Exibir arquivo Open project: JamesRandall/AccidentalFish.ApplicationSupport Class Usage Examples

Public Methods

Method Description
FromFileAsync ( string filename, ApplicationConfigurationSettings settings, bool checkForMissingSettings, IAsyncConfiguration applicationSecretStore = null, Action verboseLogger = null ) : Task

Loads the application configuration from an XML file

FromXDocumentAsync ( System.Xml.Linq.XDocument document, ApplicationConfigurationSettings settings, bool checkForMissingSettings, IAsyncConfiguration applicationSecretStore = null, Action verboseLogger = null ) : Task

Loads the application configuration from an XML document

Protected Methods

Method Description
ApplicationConfiguration ( ) : System

Constructor

Method Details

ApplicationConfiguration() protected method

Constructor
protected ApplicationConfiguration ( ) : System
return System

FromFileAsync() public static method

Loads the application configuration from an XML file
public static FromFileAsync ( string filename, ApplicationConfigurationSettings settings, bool checkForMissingSettings, IAsyncConfiguration applicationSecretStore = null, Action verboseLogger = null ) : Task
filename string The filename
settings ApplicationConfigurationSettings An optional settings file
checkForMissingSettings bool If set to true then any missing settings generate an exception
applicationSecretStore IAsyncConfiguration Optional secret store to use in addition to the settings
verboseLogger Action Optional verbose logger
return Task

FromXDocumentAsync() public static method

Loads the application configuration from an XML document
public static FromXDocumentAsync ( System.Xml.Linq.XDocument document, ApplicationConfigurationSettings settings, bool checkForMissingSettings, IAsyncConfiguration applicationSecretStore = null, Action verboseLogger = null ) : Task
document System.Xml.Linq.XDocument The document
settings ApplicationConfigurationSettings An optional settings file
checkForMissingSettings bool If set to true then any missing settings generate an exception
applicationSecretStore IAsyncConfiguration Optional secret store to use in addition to the settings
verboseLogger Action Optional verbose logger
return Task