<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview" />

Microsoft.Identity.Client.BaseAbstractApplicationBuilder<T>

public abstract class BaseAbstractApplicationBuilder<T> where T : BaseAbstractApplicationBuilder<T>
public T WithClientName(string clientName)

Sets the name of the calling SDK API for telemetry purposes.

public T WithClientVersion(string clientVersion)

Sets the version of the calling SDK for telemetry purposes.

public T WithDebugLoggingCallback(LogLevel logLevel = 2, bool enablePiiLogging = false, bool withDefaultPlatformLoggingEnabled = false)

Sets the Debug logging callback to a default debug method which displays the level of the message and the message itself. For details see https://aka.ms/msal-net-logging

public T WithExperimentalFeatures(bool enableExperimentalFeatures = true)

Allows usage of experimental features and APIs. If this flag is not set, experimental features will throw an exception. For details see https://aka.ms/msal-net-experimental-features

public T WithHttpClientFactory(IMsalHttpClientFactory httpClientFactory)

Uses a specific IMsalHttpClientFactory to communicate with the IdP. This enables advanced scenarios such as setting a proxy, or setting the Agent.

public T WithHttpClientFactory(IMsalHttpClientFactory httpClientFactory, bool retryOnceOn5xx)

Uses a specific IMsalHttpClientFactory to communicate with the IdP. This enables advanced scenarios such as setting a proxy, or setting the Agent.

public T WithLogging(LogCallback loggingCallback, LogLevel? logLevel = default, bool? enablePiiLogging = default, bool? enableDefaultPlatformLogging = default)

Sets the logging callback. For details see https://aka.ms/msal-net-logging

public T WithLogging(IIdentityLogger identityLogger, bool enablePiiLogging = false)

Sets the Identity Logger. For details see https://aka.ms/msal-net-logging

protected T WithOptions(BaseApplicationOptions applicationOptions)

Sets application options, which can, for instance have been read from configuration files. See https://aka.ms/msal-net-application-configuration.