Configuration
Structr.Configuration package is intended to simplify work with application settings via mapping to classes to provide strongly typed access to groups of related settings.
Installation
Configuration package is available on NuGet.
Setup
Create settings class.
Configuration services uses different providers to get source settings. For example: JSON and XML file, Database, Consul KV, or something else.
You can create custom settings provider:
And then setup configuration services:
Or you can use one of implemented settings provider from list.
Usage
Structr.Configuration provides separate services for the get and set settings.
Also you can customize the settings members with special attribute.
Last updated