5 writes to RequestRejectionReason
Microsoft.AspNetCore.RateLimiting (5)
RateLimitingMiddleware.cs (5)
191
return new LeaseContext() {
RequestRejectionReason
= RequestRejectionReason.GlobalLimiter, Lease = globalLease };
198
return new LeaseContext() {
RequestRejectionReason
= RequestRejectionReason.EndpointLimiter, Lease = endpointLease };
222
return new LeaseContext() {
RequestRejectionReason
= RequestRejectionReason.GlobalLimiter, Lease = globalLease };
229
return new LeaseContext() {
RequestRejectionReason
= RequestRejectionReason.EndpointLimiter, Lease = endpointLease };
240
return new LeaseContext() {
RequestRejectionReason
= RequestRejectionReason.RequestCanceled };
4 references to RequestRejectionReason
Microsoft.AspNetCore.RateLimiting (4)
RateLimitingMiddleware.cs (4)
112
_metrics.LeaseFailed(metricsContext, leaseContext.
RequestRejectionReason
!.Value);
115
if (leaseContext.
RequestRejectionReason
== RequestRejectionReason.RequestCanceled)
126
if (leaseContext.
RequestRejectionReason
== RequestRejectionReason.EndpointLimiter)
175
_metrics.QueueEnd(metricsContext, leaseContext.
RequestRejectionReason
, startTimestamp, Stopwatch.GetTimestamp());