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; }
public Found(BlockedRequest blocked) { _blocked = blocked; }
public static Found Found(BlockedRequest request) { return(new Found(request)); }