8 writes to Lease
Microsoft.AspNetCore.RateLimiting (8)
RateLimitingMiddleware.cs (8)
191
return new LeaseContext() { RequestRejectionReason = RequestRejectionReason.GlobalLimiter,
Lease
= globalLease };
198
return new LeaseContext() { RequestRejectionReason = RequestRejectionReason.EndpointLimiter,
Lease
= endpointLease };
207
return globalLease is null ? new LeaseContext() {
Lease
= endpointLease } : new LeaseContext() {
Lease
= new DefaultCombinedLease(globalLease, endpointLease) };
222
return new LeaseContext() { RequestRejectionReason = RequestRejectionReason.GlobalLimiter,
Lease
= globalLease };
229
return new LeaseContext() { RequestRejectionReason = RequestRejectionReason.EndpointLimiter,
Lease
= endpointLease };
248
return globalLease is null ? new LeaseContext() {
Lease
= endpointLease } : new LeaseContext() {
Lease
= new DefaultCombinedLease(globalLease, endpointLease) };
4 references to Lease
Microsoft.AspNetCore.RateLimiting (4)
LeaseContext.cs (1)
16
Lease
?.Dispose();
RateLimitingMiddleware.cs (3)
95
if (leaseContext.
Lease
?.IsAcquired == true)
146
await thisRequestOnRejected(new OnRejectedContext() { HttpContext = context, Lease = leaseContext.
Lease
! }, context.RequestAborted);
154
if (leaseContext.
Lease
?.IsAcquired == true)