Table of Contents

Class AzureAppConfigurationExtensions

Namespace
Microsoft.Extensions.Configuration
Assembly
Microsoft.Extensions.Configuration.AzureAppConfiguration.dll

This type provides helper methods to make common use cases for Azure App Configuration easy.

public static class AzureAppConfigurationExtensions
Inheritance
AzureAppConfigurationExtensions
Inherited Members

Methods

AddAzureAppConfiguration(IConfigurationBuilder, Action<AzureAppConfigurationOptions>, bool)

Adds key-value data from an Azure App Configuration store to a configuration builder.

public static IConfigurationBuilder AddAzureAppConfiguration(this IConfigurationBuilder configurationBuilder, Action<AzureAppConfigurationOptions> action, bool optional = false)

Parameters

configurationBuilder IConfigurationBuilder

The configuration builder to add key-values to.

action Action<AzureAppConfigurationOptions>

A callback used to configure Azure App Configuration options.

optional bool

Determines the behavior of the App Configuration provider when an exception occurs. If false, the exception is thrown. If true, the exception is suppressed and no settings are populated from Azure App Configuration.

Returns

IConfigurationBuilder

The provided configuration builder.

AddAzureAppConfiguration(IConfigurationBuilder, string, bool)

Adds key-value data from an Azure App Configuration store to a configuration builder.

public static IConfigurationBuilder AddAzureAppConfiguration(this IConfigurationBuilder configurationBuilder, string connectionString, bool optional = false)

Parameters

configurationBuilder IConfigurationBuilder

The configuration builder to add key-values to.

connectionString string

The connection string used to connect to the configuration store.

optional bool

Determines the behavior of the App Configuration provider when an exception occurs. If false, the exception is thrown. If true, the exception is suppressed and no settings are populated from Azure App Configuration.

Returns

IConfigurationBuilder

The provided configuration builder.

AddAzureAppConfiguration(IServiceCollection)

Adds Azure App Configuration services to the specified IServiceCollection.

public static IServiceCollection AddAzureAppConfiguration(this IServiceCollection services)

Parameters

services IServiceCollection

The IServiceCollection to add services to.

Returns

IServiceCollection

The IServiceCollection so that additional calls can be chained.