public RateLimitMiddleware(RequestDelegate next
                            , ILogger <RateLimitMiddleware> logger
                            , IRateLimitHandler handler
                            , IOptions <RateLimitOptions> optionsAcc)
 {
     this._next    = next;
     this._logger  = logger;
     this._handler = handler;
     this._options = optionsAcc.Value;
 }
 public RateLimitMiddleware(RequestDelegate nextStep, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     _nextStep         = nextStep;
     _rateLimitConfig  = GlobalConfig.RateLimit;
     _rateLimitHandler = new RateLimitHandler(_rateLimitConfig);
 }