public void Updated(MemoryCache owner, CacheEntryRemovedReason reason) { if (updateCallback == null) { return; } try { var args = new CacheEntryUpdateArguments(owner, reason, Key, null); updateCallback(args); } catch { // ignore - we don't care about the exceptions thrown inside the // handler } }
public void Updated (MemoryCache owner, CacheEntryRemovedReason reason) { if (updateCallback == null) return; try { var args = new CacheEntryUpdateArguments (owner, reason, Key, null); updateCallback (args); } catch { // ignore - we don't care about the exceptions thrown inside the // handler } }