예제 #1
0
        private void OnNotifierStateChanged(object sender, Events.ProviderStateChangedEventArgs args)
        {
            var oldState = IsActive;

            IsActive = args.IsAvailable;

            if (this.invalidateOnStateChange && oldState != args.IsAvailable)
            {
                OnCacheUpdated(new CacheItemNotification("self", this.cache.Name, null, CacheItemActionTypes.RemoveAll));
            }
        }
예제 #2
0
 private void OnNotifierStateChanged(object sender, Events.ProviderStateChangedEventArgs args)
 {
     IsActive = args.NewState;
     OnCacheUpdated(new CacheItemNotification("self", this.cache.Name, null, CacheItemActionTypes.RemoveAll));
 }