Inheritance: System.Exception
Exemplo n.º 1
0
 protected virtual void OnCachingFailed(Exception e, [CallerMemberName] string memberName = "")
 {
     var handler = CachingFailed;
     //don't simply digest, let caller handle exception if no handler provided
     if (handler == null)
     {
         throw new RedisCacheException("Redis | Caching failed for " + memberName, e);
     }
     var redisCacheException = new RedisCacheException("Caching failed for " + memberName, e);
     handler(this, redisCacheException);
 }
Exemplo n.º 2
0
        protected virtual void OnCachingFailed(Exception e, [CallerMemberName] string memberName = "")
        {
            var handler             = CachingFailed;
            var redisCacheException = new RedisCacheException("Redis | Caching failed for " + memberName, e);

            //don't simply digest, let caller handle exception if no handler provided
            if (handler == null)
            {
                throw redisCacheException;
            }
            handler(this, redisCacheException);
        }