Example #1
0
        public void OnAfterGet(string key)
        {
            _logger.Log(LogLevel.Trace, string.Format("GreatEagle OnAfterGet {0}", key));
            var data    = new CacheEventMessage(key, _memberName, CacheEventType.Get);
            var message = Serialize(data);

            _messagePublisher.Publish(message.ToString());
        }
Example #2
0
        public void OnAfterDelete(string key)
        {
            _logger.Log(LogLevel.Trace, string.Format("GreatEagle OnAfterDelete {0}", key));
            _remoteCacheProvider.Delete(key, true);
            var data    = new CacheEventMessage(key, _memberName, CacheEventType.Delete);
            var message = Serialize(data);

            _subscriptionManager.Publish(message.ToString());
        }
Example #3
0
 private object Serialize(CacheEventMessage cacheEvent)
 {
     return(_serializer.Serialize(cacheEvent));
 }