Table of Contents

Class EnvironmentVariablesExtensions

Namespace
Tenduke.Core.Config
Assembly
Tenduke.Core.dll

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 AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder to add to.

prefix string

The prefix that environment variable names must start with. The prefix will be removed from the environment variable names.

Returns

AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder.

AddEnvironmentVariables(TendukeConfigurationBuilder, string)

Adds an IConfigurationProvider that reads configuration values from environment variables.

public static TendukeConfigurationBuilder AddEnvironmentVariables(this TendukeConfigurationBuilder builder, string prefix)

Parameters

builder TendukeConfigurationBuilder

The TendukeConfigurationBuilder to add to.

prefix string

The prefix that environment variable names must start with. The prefix will be removed from the environment variable names.

Returns

TendukeConfigurationBuilder

The TendukeConfigurationBuilder.