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. |
| 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 |
| 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. |