mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-04 10:21:13 +00:00
ae7504c26c
Added V2 Shared API's infrastructure Added request coalescing Added rate limiting admission logic Fixed some rate limiting issues
30 lines
798 B
C#
30 lines
798 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// References for a capability available through REST.
|
|
/// </summary>
|
|
public class SharedRestCapability<TCapability, TRest>
|
|
: SharedCapabilityReference<TCapability>
|
|
where TCapability : ISharedApiCapability
|
|
where TRest : TCapability, ISharedRest
|
|
{
|
|
/// <summary>
|
|
/// Transport-agnostic capability.
|
|
/// </summary>
|
|
public SharedCapabilityReference<TCapability> Any { get; } = new();
|
|
|
|
/// <summary>
|
|
/// REST capability.
|
|
/// </summary>
|
|
public SharedCapabilityReference<TRest> Rest { get; } = new();
|
|
|
|
internal SharedRestCapability()
|
|
{
|
|
}
|
|
}
|
|
}
|