mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-13 01:12:59 +00:00
0be1bb16e3
Added SetOptions method to update client settings Added SocketConnection parameter to PeriodicQuery callback Added setting of DefaultProxyCredentials on HttpClient instance when client is not provided by DI Added support for overriding request time out per request Changed max wait time for close handshake response from 5 seconds to 1 second Fixed exception in trade tracker when there is no data in the initial snapshot
30 lines
823 B
C#
30 lines
823 B
C#
using CryptoExchange.Net.Authentication;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.Objects.Options
|
|
{
|
|
/// <summary>
|
|
/// Options to update
|
|
/// </summary>
|
|
public class UpdateOptions<T> where T : ApiCredentials
|
|
{
|
|
/// <summary>
|
|
/// Proxy setting. Note that if this is not provided any previously set proxy will be reset
|
|
/// </summary>
|
|
public ApiProxy? Proxy { get; set; }
|
|
/// <summary>
|
|
/// Api credentials
|
|
/// </summary>
|
|
public T? ApiCredentials { get; set; }
|
|
/// <summary>
|
|
/// Request timeout
|
|
/// </summary>
|
|
public TimeSpan? RequestTimeout { get; set; }
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public class UpdateOptions : UpdateOptions<ApiCredentials> { }
|
|
}
|