Share via


ConfigurationExtensions Class

Definition

Provides extension methods for IConfiguration interface.

public static class ConfigurationExtensions
type ConfigurationExtensions = class
Public Module ConfigurationExtensions
Inheritance
ConfigurationExtensions

Methods

Name Description
AddAzureClient<TClient,TSettings>(IHostApplicationBuilder, String, Action<TSettings>)

Adds a singleton Azure client of the specified type to the IHostApplicationBuilder's service collection.

AddAzureClient<TClient,TSettings>(IHostApplicationBuilder, String)

Adds a singleton Azure client of the specified type to the IHostApplicationBuilder's service collection.

AddKeyedAzureClient<TClient,TSettings>(IHostApplicationBuilder, String, String, Action<TSettings>)

Adds a keyed singleton Azure client of the specified type to the IHostApplicationBuilder's service collection.

AddKeyedAzureClient<TClient,TSettings>(IHostApplicationBuilder, String, String)

Adds a keyed singleton Azure client of the specified type to the IHostApplicationBuilder's service collection.

GetAzureClientSettings<T>(IConfiguration, String)

Creates an instance of T and sets its properties from the specified IConfiguration.

WithAzureCredential(IClientBuilder)

Registers a credential factory to return a TokenCredential to use for the current IClientBuilder. If the same credential configuration has already been registered, the existing credential instance is reused.

WithAzureCredential<T>(T)

Sets the CredentialProvider to an instance of TokenCredential.

Applies to