AzureClientFactoryBuilder 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.
The builder type for registering Azure SDK clients.
public sealed class AzureClientFactoryBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<Microsoft.Extensions.Configuration.IConfiguration>, Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential
type AzureClientFactoryBuilder = class
interface IAzureClientFactoryBuilderWithConfiguration<IConfiguration>
interface IAzureClientFactoryBuilder
interface IAzureClientFactoryBuilderWithCredential
Public NotInheritable Class AzureClientFactoryBuilder
Implements IAzureClientFactoryBuilderWithConfiguration(Of IConfiguration), IAzureClientFactoryBuilderWithCredential
- Inheritance
-
AzureClientFactoryBuilder
- Implements
Methods
AddClient<TClient,TOptions>(Func<TOptions,IServiceProvider,TClient>) |
Adds a client factory for |
AddClient<TClient,TOptions>(Func<TOptions,TClient>) |
Adds a client factory for |
AddClient<TClient,TOptions>(Func<TOptions,TokenCredential,IServiceProvider,TClient>) |
Adds a client factory for |
AddClient<TClient,TOptions>(Func<TOptions,TokenCredential,TClient>) |
Adds a client factory for |
ConfigureDefaults(Action<ClientOptions,IServiceProvider>) |
Adds a configuration delegate that gets executed for all clients. |
ConfigureDefaults(Action<ClientOptions>) |
Adds a configuration delegate that gets executed for all clients. |
ConfigureDefaults(IConfiguration) |
Adds a configuration instance to initialize all clients from. |
UseCredential(Func<IServiceProvider,TokenCredential>) |
Sets the credential to use by default for all clients. |
UseCredential(TokenCredential) |
Sets the credential to use by default for all clients. |
Explicit Interface Implementations
IAzureClientFactoryBuilder.RegisterClientFactory<TClient,TOptions>(Func<TOptions,TClient>) |
Registers a client in the dependency injection container using the factory to create a client instance. |
IAzureClientFactoryBuilderWithConfiguration<IConfiguration>.RegisterClientFactory<TClient,TOptions>(IConfiguration) |
Registers a client in the dependency injection container using the configuration to create a client instance. |
IAzureClientFactoryBuilderWithCredential.RegisterClientFactory<TClient,TOptions>(Func<TOptions,TokenCredential,TClient>, Boolean) |
Registers a client in dependency injection container the using the factory to create a client instance. |