C# Class Bit.Api.Middleware.CustomIpRateLimitMiddleware

Inheritance: IpRateLimitMiddleware
Afficher le fichier Open project: bitwarden/core

Méthodes publiques

Méthode Description
CustomIpRateLimitMiddleware ( IMemoryCache memoryCache, IBlockIpService blockIpService, RequestDelegate next, IOptions options, IRateLimitCounterStore counterStore, IIpPolicyStore policyStore, ILogger logger, IIpAddressParser ipParser = null ) : System.Threading.Tasks
LogBlockedRequest ( HttpContext httpContext, ClientRequestIdentity identity, RateLimitCounter counter, RateLimitRule rule ) : void
ReturnQuotaExceededResponse ( HttpContext httpContext, RateLimitRule rule, string retryAfter ) : System.Threading.Tasks.Task

Method Details

CustomIpRateLimitMiddleware() public méthode

public CustomIpRateLimitMiddleware ( IMemoryCache memoryCache, IBlockIpService blockIpService, RequestDelegate next, IOptions options, IRateLimitCounterStore counterStore, IIpPolicyStore policyStore, ILogger logger, IIpAddressParser ipParser = null ) : System.Threading.Tasks
memoryCache IMemoryCache
blockIpService IBlockIpService
next RequestDelegate
options IOptions
counterStore IRateLimitCounterStore
policyStore IIpPolicyStore
logger ILogger
ipParser IIpAddressParser
Résultat System.Threading.Tasks

LogBlockedRequest() public méthode

public LogBlockedRequest ( HttpContext httpContext, ClientRequestIdentity identity, RateLimitCounter counter, RateLimitRule rule ) : void
httpContext HttpContext
identity ClientRequestIdentity
counter RateLimitCounter
rule RateLimitRule
Résultat void

ReturnQuotaExceededResponse() public méthode

public ReturnQuotaExceededResponse ( HttpContext httpContext, RateLimitRule rule, string retryAfter ) : System.Threading.Tasks.Task
httpContext HttpContext
rule RateLimitRule
retryAfter string
Résultat System.Threading.Tasks.Task