IClientBuilder Interface

Definition

Provides a builder interface for configuring client applications.

public interface IClientBuilder
type IClientBuilder = interface
Public Interface IClientBuilder

Methods

Name Description
ConfigureCredential(Action<IConfigurationSection>)

Adds a configuration action that mutates the Credential configuration section before it is handed to the registered CredentialResolver chain. Use this to override values such as TenantId or ClientId at registration time.

PostConfigure(Action<ClientSettings>)

Adds a configuration action to be executed after the initial configuration of ClientSettings.

Extension Methods

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

Applies to