1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-17 03:12:56 +00:00

Changed requestId to int, added it to more logging related to requests. Added some comments

This commit is contained in:
JKorf
2020-08-24 12:01:49 +02:00
parent c8a6a2ec12
commit 664cbee8dd
8 changed files with 93 additions and 211 deletions
@@ -36,12 +36,12 @@ namespace CryptoExchange.Net.Requests
}
/// <inheritdoc />
public IRequest Create(HttpMethod method, string uri)
public IRequest Create(HttpMethod method, string uri, int requestId)
{
if (httpClient == null)
throw new InvalidOperationException("Cant create request before configuring http client");
return new Request(new HttpRequestMessage(method, uri), httpClient);
return new Request(new HttpRequestMessage(method, uri), httpClient, requestId);
}
}
}