Example #1
0
        public void Insert <A>(Returns <A> request, BlockedRequest blocked)
        {
            var key = _keyGenerator.ForRequest(request);

            if (_cache.ContainsKey(key))
            {
                throw new Exception("Internal Haxl error: attempted to cache duplicate request.");
            }
            _cache[key] = blocked;
        }
Example #2
0
 public Found(BlockedRequest blocked)
 {
     _blocked = blocked;
 }
Example #3
0
 public static Found Found(BlockedRequest request)
 {
     return(new Found(request));
 }