Bit.Api.Middleware.CustomIpRateLimitMiddleware.CustomIpRateLimitMiddleware C# (CSharp) Method

CustomIpRateLimitMiddleware() public method

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
return System.Threading.Tasks
        public CustomIpRateLimitMiddleware(
            IMemoryCache memoryCache,
            IBlockIpService blockIpService,
            RequestDelegate next,
            IOptions<IpRateLimitOptions> options,
            IRateLimitCounterStore counterStore,
            IIpPolicyStore policyStore,
            ILogger<IpRateLimitMiddleware> logger,
            IIpAddressParser ipParser = null)
            : base(next, options, counterStore, policyStore, logger, ipParser)
        {
            _memoryCache = memoryCache;
            _blockIpService = blockIpService;
            _options = options.Value;
            _logger = logger;
        }