protected override Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
        {
            BlockNumberRequests.Add(request);

            return(Task.FromResult(ResponseQueue.Dequeue()));
        }
예제 #2
0
        public override Task <BlockResult> GetBlockByNumber(string hexBlockNumber)
        {
            BlockNumberRequests.Add(hexBlockNumber);

            return(Task.FromResult(ResponseQueue.Dequeue()));
        }