Adding RateLimit Feature ...
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace xCommons.Models
|
||||
{
|
||||
public class XRateLimitResult
|
||||
{
|
||||
public int Limit { get; set; }
|
||||
public string Key { get; set; }
|
||||
public int Remaining { get; set; }
|
||||
public bool IsAllowed { get; set; }
|
||||
public int RetryAfterSeconds { get; set; }
|
||||
public DateTimeOffset ResetOn { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user