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()));
        }