Structr
Search
K
Comment on page

Providers

List of implemented settings providers:

Settings provider options

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.