1 instantiation of MetricsContext
Microsoft.AspNetCore.RateLimiting (1)
RateLimitingMetrics.cs (1)
189
return new
MetricsContext
(policyName, _activeRequestLeasesCounter.Enabled, _queuedRequestsCounter.Enabled);
14 references to MetricsContext
Microsoft.AspNetCore.RateLimiting (14)
RateLimitingMetrics.cs (12)
54
public void LeaseFailed(in
MetricsContext
metricsContext, RequestRejectionReason reason)
63
private void LeaseFailedCore(in
MetricsContext
metricsContext, RequestRejectionReason reason)
71
public void LeaseStart(in
MetricsContext
metricsContext)
80
public void LeaseStartCore(in
MetricsContext
metricsContext)
87
public void LeaseEnd(in
MetricsContext
metricsContext, long startTimestamp, long currentTimestamp)
96
private void LeaseEndCore(in
MetricsContext
metricsContext, long startTimestamp, long currentTimestamp)
120
public void QueueStart(in
MetricsContext
metricsContext)
129
private void QueueStartCore(in
MetricsContext
metricsContext)
136
public void QueueEnd(in
MetricsContext
metricsContext, RequestRejectionReason? reason, long startTimestamp, long currentTimestamp)
145
private void QueueEndCore(in
MetricsContext
metricsContext, RequestRejectionReason? reason, long startTimestamp, long currentTimestamp)
168
private static void InitializeRateLimitingTags(ref TagList tags, in
MetricsContext
metricsContext)
187
public
MetricsContext
CreateContext(string? policyName)
RateLimitingMiddleware.cs (2)
91
var
metricsContext = _metrics.CreateContext(policyName);
151
private async ValueTask<LeaseContext> TryAcquireAsync(HttpContext context,
MetricsContext
metricsContext)