Share via


AzureClientBuilderExtensions Class

Definition

Extension methods to configure client registrations.

public static class AzureClientBuilderExtensions
type AzureClientBuilderExtensions = class
Public Module AzureClientBuilderExtensions
Inheritance
AzureClientBuilderExtensions

Methods

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.

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

Configures client options using provided IConfiguration instance.

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

Set the credential factory to use for this client registration.

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

Set the credential 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