mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 14:02:49 +08:00
This commit is contained in:
parent
f934620538
commit
0b9ff92549
@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Ocelot.RateLimit
|
||||
{
|
||||
@ -10,10 +11,11 @@ namespace Ocelot.RateLimit
|
||||
/// </summary>
|
||||
public struct RateLimitCounter
|
||||
{
|
||||
public RateLimitCounter(DateTime timestamp, long totalRequest)
|
||||
[JsonConstructor]
|
||||
public RateLimitCounter(DateTime timestamp, long totalRequests)
|
||||
{
|
||||
Timestamp = timestamp;
|
||||
TotalRequests = totalRequest;
|
||||
TotalRequests = totalRequests;
|
||||
}
|
||||
|
||||
public DateTime Timestamp { get; private set; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user