public static FromFileAsync ( string filename, |
||
filename | string | The filename |
settings | 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 |
public static async Task<ApplicationConfiguration> FromFileAsync(string filename, ApplicationConfigurationSettings settings,
bool checkForMissingSettings, IAsyncConfiguration applicationSecretStore =null, Action<string> verboseLogger = null)
{
XDocument document;
using (StreamReader reader = new StreamReader(filename))
{
document = XDocument.Load(reader);
}
return await FromXDocumentAsync(document, settings, checkForMissingSettings, applicationSecretStore, verboseLogger);
}