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)); } }
private void OnNotifierStateChanged(object sender, Events.ProviderStateChangedEventArgs args) { IsActive = args.NewState; OnCacheUpdated(new CacheItemNotification("self", this.cache.Name, null, CacheItemActionTypes.RemoveAll)); }