1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-15 10:22:57 +00:00

Added request timeout, some refactoring

This commit is contained in:
JKorf
2018-11-27 13:32:20 +01:00
parent 009ae3a45d
commit 86674c83f5
10 changed files with 86 additions and 43 deletions
@@ -50,6 +50,11 @@ namespace CryptoExchange.Net.Objects
/// What to do when a call would exceed the rate limit
/// </summary>
public RateLimitingBehaviour RateLimitingBehaviour { get; set; } = RateLimitingBehaviour.Wait;
/// <summary>
/// The time the server has to respond to a request before timing out
/// </summary>
public TimeSpan RequestTimeout { get; set; } = TimeSpan.FromSeconds(30);
}
public class SocketClientOptions: ExchangeOptions