private void AdalDoAfter( global::Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCacheNotificationArgs args) { if (args.TokenCache.HasStateChanged) { global::Microsoft.Identity.Core.Cache.CacheData cacheData = args.TokenCache.SerializeAdalAndUnifiedCache(); AdalV3StateStorage = cacheData.AdalV3State; UnifiedStateStorage = cacheData.UnifiedState; args.TokenCache.HasStateChanged = false; } }
private void AdalDoBefore( global::Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCacheNotificationArgs args) { global::Microsoft.Identity.Core.Cache.CacheData cacheData; cacheData = new global::Microsoft.Identity.Core.Cache.CacheData() { AdalV3State = AdalV3StateStorage, UnifiedState = UnifiedStateStorage }; args.TokenCache.DeserializeAdalAndUnifiedCache(cacheData); }