public SentryMiddleware(RequestDelegate next,
                         IConfigureOptions <SentryOptions> optionsSetup,
                         SentryClient sentryClient,
                         RateLimit rateLimit)
 {
     _next         = next;
     _sentryClient = sentryClient;
     RateLimit     = rateLimit;
     Options       = GetOptions(optionsSetup);
 }
示例#2
0
 public SentryMiddleware(RequestDelegate next,
                         IOptions <SentryOptions> optionsAccessor,
                         SentryClient sentryClient,
                         RateLimit rateLimit)
 {
     _next         = next;
     _sentryClient = sentryClient;
     _rateLimit    = rateLimit;
     Options       = optionsAccessor.Value;
 }