C# 클래스 Bit.Api.Middleware.CustomIpRateLimitMiddleware

상속: IpRateLimitMiddleware
파일 보기 프로젝트 열기: bitwarden/core

공개 메소드들

메소드 설명
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

메소드 상세

CustomIpRateLimitMiddleware() 공개 메소드

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
리턴 System.Threading.Tasks

LogBlockedRequest() 공개 메소드

public LogBlockedRequest ( HttpContext httpContext, ClientRequestIdentity identity, RateLimitCounter counter, RateLimitRule rule ) : void
httpContext HttpContext
identity ClientRequestIdentity
counter RateLimitCounter
rule RateLimitRule
리턴 void

ReturnQuotaExceededResponse() 공개 메소드

public ReturnQuotaExceededResponse ( HttpContext httpContext, RateLimitRule rule, string retryAfter ) : System.Threading.Tasks.Task
httpContext HttpContext
rule RateLimitRule
retryAfter string
리턴 System.Threading.Tasks.Task