<PackageReference Include="System.ClientModel" Version="1.11.0" />

System.ClientModel.Primitives.IClientBuilder

public interface IClientBuilder
Provides a builder interface for configuring client applications.
IClientBuilder ConfigureCredential(Action<IConfigurationSection> configureOverrides)

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.

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