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