Megosztás a következőn keresztül:


AzureClientFactoryBuilder Class

Definition

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 TClient using TOptions as options type. Allows resolving services from IServiceProvider during the client construction.

AddClient<TClient,TOptions>(Func<TOptions,TClient>)

Adds a client factory for TClient using TOptions as options type.

AddClient<TClient,TOptions>(Func<TOptions,TokenCredential,IServiceProvider,TClient>)

Adds a client factory for TClient using TOptions as options type and a TokenCredential for authentication. Allows resolving services from IServiceProvider during the client construction.

AddClient<TClient,TOptions>(Func<TOptions,TokenCredential,TClient>)

Adds a client factory for TClient using TOptions as options type and a TokenCredential for authentication.

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.

Applies to