private void SetSerialization( Microsoft.Identity.Client.ITokenCache tokenCache, string tokenFile) { tokenFilePath = tokenFile; tokenCache.SetBeforeAccess(BeforeAccessHandler); tokenCache.SetAfterAccess(AfterAccessHandler); }
/// <summary> /// Enables serialization of PublicClientApplication user tokens. /// </summary> /// <param name="UserTokenCache">User token cache from PublicClientApplication.</param> internal static void EnableSerialization(Microsoft.Identity.Client.ITokenCache UserTokenCache) { UserTokenCache.SetBeforeAccess(SoftmakeAll.SDK.Fluent.TokenCacheHelper.BeforeAccessNotification); UserTokenCache.SetAfterAccess(SoftmakeAll.SDK.Fluent.TokenCacheHelper.AfterAccessNotification); }