providers.EnvironmentConfigurationProvider
The EnvironmentConfigurationProvider consumes environment variables as key-value pairs. For example, consider these bash exports:
export ConnectionStrings__SampleDb=my_cxn_string
export ConnectionStrings__AnotherDb=another_cxn_string
The above will result in a Configuration object with the following state (represented as JSON):
{
"ConnectionStrings": {
"SampleDb": "my_cxn_string",
"AnotherDb": "another_cxn_string"
}
}
- class EnvironmentConfigurationProvider
Bases:
ConfigurationProviderPopulates configuration data from Environment variables.
- populateConfiguration(configuration: Configuration)
Populates the provided
Configurationobject using provider-specific methods.