Comment on page
Providers
List of implemented settings providers:
Provider name | NuGet package |
---|---|
When you setup settings provider you can configure provider options represents by
SettingsProviderOptions
.SettingsProviderOptions
properties:Property name | Property type | Description |
---|---|---|
Cache | bool | Determines whether settings should be cached, true by default. |
Example configure services:
services.AddConfiguration()
.AddJson<SmtpEmailSettings>("path_to_json_file", (serviceProvider, options) =>
{
options.Cache = true;
});
If
Cache
options was setting up to true
then settings provider return cached settings while IsSettingsModified()
returns false
, otherwise every settings request invoke LoadSettings()
method.Last modified 1yr ago