Method | Description | |
---|---|---|
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 | |
return | System.Threading.Tasks |
public LogBlockedRequest ( HttpContext httpContext, ClientRequestIdentity identity, RateLimitCounter counter, RateLimitRule rule ) : void | ||
httpContext | HttpContext | |
identity | ClientRequestIdentity | |
counter | RateLimitCounter | |
rule | RateLimitRule | |
return | void |
public ReturnQuotaExceededResponse ( HttpContext httpContext, RateLimitRule rule, string retryAfter ) : System.Threading.Tasks.Task | ||
httpContext | HttpContext | |
rule | RateLimitRule | |
retryAfter | string | |
return | System.Threading.Tasks.Task |