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

System.ClientModel.Primitives.ClientSettings

public abstract class ClientSettings
Represents the settings used to configure a client that can be loaded from an IConfigurationSection.
public CredentialSettings Credential { get; set; }

Gets or sets the credential settings.

Gets or sets the credential provider.

protected ClientSettings()

public void Bind(IConfigurationSection section)

Binds the values from the IConfigurationSection to the properties of the ClientSettings.

protected abstract void BindCore(IConfigurationSection section)

Allows derived classes to bind their specific properties from the IConfigurationSection.

public void PostConfigure(Action<IConfigurationSection> configure)

Allows for additional configuration using the IConfigurationSection after the initial binding.