4 references to RateLimitingMetrics
Microsoft.AspNetCore.RateLimiting (4)
RateLimiterApplicationBuilderExtensions.cs (1)
49if (serviceProviderIsService != null && !serviceProviderIsService.IsService(typeof(RateLimitingMetrics)))
RateLimiterServiceCollectionExtensions.cs (1)
40services.AddSingleton<RateLimitingMetrics>();
RateLimitingMiddleware.cs (2)
20private readonly RateLimitingMetrics _metrics; 35public RateLimitingMiddleware(RequestDelegate next, ILogger<RateLimitingMiddleware> logger, IOptions<RateLimiterOptions> options, IServiceProvider serviceProvider, RateLimitingMetrics metrics)