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
builder
AsyncTendukeConfigurationBuilderThe AsyncTendukeConfigurationBuilder to add to.
prefix
stringThe 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
builder
TendukeConfigurationBuilderThe TendukeConfigurationBuilder to add to.
prefix
stringThe prefix that environment variable names must start with. The prefix will be removed from the environment variable names.