Compartilhar via


AbstractApplicationBuilder<T>.WithLegacyCacheCompatibility Method

Definition

Enables legacy ADAL cache serialization and deserialization.

public T WithLegacyCacheCompatibility (bool enableLegacyCacheCompatibility = true);
member this.WithLegacyCacheCompatibility : bool -> 'T
Public Function WithLegacyCacheCompatibility (Optional enableLegacyCacheCompatibility As Boolean = true) As T

Parameters

enableLegacyCacheCompatibility
Boolean

Enable legacy ADAL cache compatibility.

Returns

T

The builder to chain the .With methods.

Remarks

ADAL is a previous legacy generation of MSAL.NET authentication library. If you don't use .WithLegacyCacheCompatibility(false), then by default, the ADAL cache is used (along with MSAL cache). true flag is only needed for specific migration scenarios from ADAL.NET to MSAL.NET when both library versions are running side-by-side. To improve performance add .WithLegacyCacheCompatibility(false) unless you care about migration scenarios.

Applies to