Метод | Описание | |
---|---|---|
CustomIpRateLimitMiddleware ( IMemoryCache memoryCache, IBlockIpService blockIpService, RequestDelegate next, IOptions |
||
LogBlockedRequest ( HttpContext httpContext, ClientRequestIdentity identity, RateLimitCounter counter, RateLimitRule rule ) : void | ||
ReturnQuotaExceededResponse ( HttpContext httpContext, RateLimitRule rule, string retryAfter ) : System.Threading.Tasks.Task |
public CustomIpRateLimitMiddleware ( IMemoryCache memoryCache, IBlockIpService blockIpService, RequestDelegate next, IOptions |
||
memoryCache | IMemoryCache | |
blockIpService | IBlockIpService | |
next | RequestDelegate | |
options | IOptions |
|
counterStore | IRateLimitCounterStore | |
policyStore | IIpPolicyStore | |
logger | ILogger |
|
ipParser | IIpAddressParser | |
Результат | System.Threading.Tasks |
public LogBlockedRequest ( HttpContext httpContext, ClientRequestIdentity identity, RateLimitCounter counter, RateLimitRule rule ) : void | ||
httpContext | HttpContext | |
identity | ClientRequestIdentity | |
counter | RateLimitCounter | |
rule | RateLimitRule | |
Результат | void |
public ReturnQuotaExceededResponse ( HttpContext httpContext, RateLimitRule rule, string retryAfter ) : System.Threading.Tasks.Task | ||
httpContext | HttpContext | |
rule | RateLimitRule | |
retryAfter | string | |
Результат | System.Threading.Tasks.Task |