17 lines
622 B
C#
17 lines
622 B
C#
|
namespace WebRateLimitAuth.Models;
|
||
|
|
||
|
public class MyRateLimitOptions
|
||
|
{
|
||
|
public const string MyRateLimit = "MyRateLimit";
|
||
|
public int PermitLimit { get; set; } = 10;
|
||
|
public int SlidingPermitLimit { get; set; } = 100;
|
||
|
public int Window { get; set; } = 10;
|
||
|
public int ReplenishmentPeriod { get; set; } = 2;
|
||
|
public int QueueLimit { get; set; } = 100;
|
||
|
public int SegmentsPerWindow { get; set; } = 8;
|
||
|
public int TokenLimit { get; set; } = 10;
|
||
|
public int TokenLimit2 { get; set; } = 20;
|
||
|
public int TokensPerPeriod { get; set; } = 4;
|
||
|
public bool AutoReplenishment { get; set; } = false;
|
||
|
}
|