Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (31 sloc) 1.79 KB

Configurations

Configurations and variables are used to provide configuration parameters to the web application. You can manage them (add, edit, and delete) from the backend using the :guilabel:`Administration/Configurations` section:

/images/fundamentals/administration/configurations/1.png

Each configuration has code and name:

/images/fundamentals/administration/configurations/2.png

Code is used to get the configuration from code.

Configurations consist of variables. Each variable has code, name, value, and position:

/images/fundamentals/administration/configurations/3.png

The same as for configurations, code is used to get the variable from code.

There is the special DefaultConfigurationManager class that you can use to operate the configurations. It implements the IConfigurationManager interface and it is registered as a service inside the DI, so you can replace it with your own implementation.

This is the usage example:

Also, you can use the configurationBuilder.AddStorage() extension method:

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.