16 references to RequestRejectionReason
Microsoft.AspNetCore.RateLimiting (16)
RateLimitingMetrics.cs (8)
54public void LeaseFailed(in MetricsContext metricsContext, RequestRejectionReason reason)
63private void LeaseFailedCore(in MetricsContext metricsContext, RequestRejectionReason reason)
136public void QueueEnd(in MetricsContext metricsContext, RequestRejectionReason? reason, long startTimestamp, long currentTimestamp)
145private void QueueEndCore(in MetricsContext metricsContext, RequestRejectionReason? reason, long startTimestamp, long currentTimestamp)
176private static string GetResult(RequestRejectionReason reason)
180RequestRejectionReason.EndpointLimiter => "endpoint_limiter",
181RequestRejectionReason.GlobalLimiter => "global_limiter",
182RequestRejectionReason.RequestCanceled => "request_canceled",