IAzureClientBuilder<TClient,TOptions> Interface

Definition

Marks the type exposing client registration options for clients registered with IAzureClientFactoryBuilder.

public interface IAzureClientBuilder<TClient,TOptions> where TOptions : class
type IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> = interface
Public Interface IAzureClientBuilder(Of TClient, TOptions)

Type Parameters

TClient

The type of the client.

TOptions

The options type used by the client.

Extension Methods

ConfigureOptions<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, IConfiguration)

Configures client options using provided IConfiguration instance.

ConfigureOptions<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, Action<TOptions,IServiceProvider>)

Adds a delegate to configure the client options. All delegates are executed in order they were added.

ConfigureOptions<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, Action<TOptions>)

Adds a delegate to configure the client options. All delegates are executed in order they were added.

WithCredential<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, TokenCredential)

Set the credential to use for this client registration.

WithCredential<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, Func<IServiceProvider,TokenCredential>)

Set the credential factory to use for this client registration.

WithName<TClient,TOptions>(IAzureClientBuilder<TClient,TOptions>, String)

Sets the name for the client registration. To resolve named clients use CreateClient(String) method.

WithVersion<TClient,TOptions,TVersion>(IAzureClientBuilder<TClient,TOptions>, TVersion)

Sets the service version to use for this client registration.

Applies to