Class EnvironmentVariablesExtensions
Extension methods for registering Tenduke.Core.Config.EnvironmentVariables.EnvironmentVariablesConfigurationProvider with TendukeConfigurationBuilder.
public static class EnvironmentVariablesExtensions
- Inheritance
-
EnvironmentVariablesExtensions
- Inherited Members
Methods
AddEnvironmentVariables(AsyncTendukeConfigurationBuilder, string)
Adds an IConfigurationProvider that reads configuration values from environment variables.
public static AsyncTendukeConfigurationBuilder AddEnvironmentVariables(this AsyncTendukeConfigurationBuilder builder, string prefix)
Parameters
builderAsyncTendukeConfigurationBuilderThe AsyncTendukeConfigurationBuilder to add to.
prefixstringThe prefix that environment variable names must start with. The prefix will be removed from the environment variable names.
Returns
AddEnvironmentVariables(TendukeConfigurationBuilder, string)
Adds an IConfigurationProvider that reads configuration values from environment variables.
public static TendukeConfigurationBuilder AddEnvironmentVariables(this TendukeConfigurationBuilder builder, string prefix)
Parameters
builderTendukeConfigurationBuilderThe TendukeConfigurationBuilder to add to.
prefixstringThe prefix that environment variable names must start with. The prefix will be removed from the environment variable names.