AbstractApplicationBuilder<T>.WithLegacyCacheCompatibility Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.