Example #1
0
        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
            }
        }
Example #2
0
		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
			}
		}