ConfigurationExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
| AddAzureCredentialResolver(IHostApplicationBuilder) |
Registers AzureCredentialResolver on the host's service collection. Idempotent — repeated calls do not produce duplicate registrations. |
| AddAzureCredentialResolver(IServiceCollection) |
Registers AzureCredentialResolver in the service collection. Idempotent — repeated calls do not produce duplicate registrations. |
| 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, CredentialResolver[]) |
Creates an instance of |
| GetAzureClientSettings<T>(IConfiguration, String, IEnumerable<CredentialResolver>, Action<IConfigurationSection>) |
Creates an instance of |
| GetAzureClientSettings<T>(IConfiguration, String) |
Creates an instance of |
| GetAzureCredentialSettings(IConfiguration, String, CredentialResolver[]) |
Returns the CredentialSettings bound from the named credential section.
Caller-supplied |
| GetAzureCredentialSettings(IConfiguration, String, IEnumerable<CredentialResolver>, Action<IConfigurationSection>) |
Returns the CredentialSettings bound from the named credential section,
applying |
| GetAzureCredentialSettings(IConfiguration, String) |
Returns the CredentialSettings bound from the named credential section, with TokenProvider populated by the built-in AzureCredentialResolver when it claims the section. |
| 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. |