C# Класс AccidentalFish.ApplicationSupport.Core.Configuration.ApplicationConfiguration

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

Защищенные методы

Метод Описание
ApplicationConfiguration ( ) : System

Constructor

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

ApplicationConfiguration() защищенный Метод

Constructor
protected ApplicationConfiguration ( ) : System
Результат System

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

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

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

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