mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-16 02:43:00 +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
29 lines
796 B
C#
29 lines
796 B
C#
using CryptoExchange.Net.Objects;
|
|
using System;
|
|
|
|
namespace CryptoExchange.Net.Sockets
|
|
{
|
|
/// <summary>
|
|
/// Periodic task registration
|
|
/// </summary>
|
|
public class PeriodicTaskRegistration
|
|
{
|
|
/// <summary>
|
|
/// Identifier
|
|
/// </summary>
|
|
public string Identifier { get; set; } = string.Empty;
|
|
/// <summary>
|
|
/// Interval of query
|
|
/// </summary>
|
|
public TimeSpan Interval { get; set; }
|
|
/// <summary>
|
|
/// Delegate for getting the query
|
|
/// </summary>
|
|
public Func<SocketConnection, Query> QueryDelegate { get; set; } = null!;
|
|
/// <summary>
|
|
/// Callback after query
|
|
/// </summary>
|
|
public Action<SocketConnection, CallResult>? Callback { get; set; }
|
|
}
|
|
}
|