private void OnSignalRaised(object sender, SignaledChangeEventArgs e) { if (string.IsNullOrEmpty(e.Name) || string.Equals(e.Name, name)) { // Cache objects are obligated to remove entry upon change notification. OnChanged(null); } }
private void OnSignalRaised(object sender, SignaledChangeEventArgs e) { if (string.IsNullOrWhiteSpace(e.Name) || string.Compare(e.Name, _name, true) == 0) { Debug.WriteLine( _uniqueId + " notifying cache of change.", "SignaledChangeMonitor"); // Cache objects are obligated to remove entry upon change notification. base.OnChanged(null); } }