mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 09:35:27 +08:00 
			
		
		
		
	This commit is contained in:
		@@ -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; }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user