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