26 references to ConcurrencyLimiterMiddleware
Microsoft.AspNetCore.ConcurrencyLimiter (9)
ConcurrencyLimiterExtensions.cs (3)
9
/// Extension methods for adding the <see cref="
ConcurrencyLimiterMiddleware
"/> to an application.
14
/// Adds the <see cref="
ConcurrencyLimiterMiddleware
"/> to limit the number of concurrently-executing requests.
23
return app.UseMiddleware<
ConcurrencyLimiterMiddleware
>();
ConcurrencyLimiterMiddleware.cs (2)
22
/// Creates a new <see cref="
ConcurrencyLimiterMiddleware
"/>.
36
_logger = loggerFactory.CreateLogger<
ConcurrencyLimiterMiddleware
>();
ConcurrencyLimiterOptions.cs (1)
9
/// Specifies options for the <see cref="
ConcurrencyLimiterMiddleware
"/>.
QueuePolicies\IQueuePolicy.cs (1)
7
/// Queueing policies, meant to be used with the <see cref="
ConcurrencyLimiterMiddleware
"></see>.
QueuePolicies\QueuePolicyServiceCollectionExtensions.cs (2)
14
/// Tells <see cref="
ConcurrencyLimiterMiddleware
"/> to use a FIFO queue as its queueing strategy.
28
/// Tells <see cref="
ConcurrencyLimiterMiddleware
"/> to use a LIFO stack as its queueing strategy.
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (6)
QueueEmptyOverhead.cs (2)
15
private
ConcurrencyLimiterMiddleware
_middlewareQueue;
16
private
ConcurrencyLimiterMiddleware
_middlewareStack;
QueueFullOverhead.cs (2)
17
private
ConcurrencyLimiterMiddleware
_middlewareQueue;
18
private
ConcurrencyLimiterMiddleware
_middlewareStack;
QueueRequestsOverwritten.cs (2)
18
private
ConcurrencyLimiterMiddleware
_middlewareQueue;
19
private
ConcurrencyLimiterMiddleware
_middlewareStack;
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (11)
MiddlewareTests.cs (8)
17
var
middleware = TestUtils.CreateTestMiddleware(
34
var
middleware = TestUtils.CreateTestMiddleware(
51
var
middleware = TestUtils.CreateTestMiddleware(
66
var
middleware = TestUtils.CreateTestMiddleware(testQueue);
89
var
middleware = TestUtils.CreateTestMiddleware(testQueue);
111
var
middleware = TestUtils.CreateTestMiddleware(
146
var
middleware = TestUtils.CreateTestMiddleware(
187
var
middleware = TestUtils.CreateTestMiddleware(
TestUtils.cs (3)
13
public static
ConcurrencyLimiterMiddleware
CreateTestMiddleware(IQueuePolicy queue = null, RequestDelegate onRejected = null, RequestDelegate next = null)
28
public static
ConcurrencyLimiterMiddleware
CreateTestMiddleware_QueuePolicy(int maxConcurrentRequests, int requestQueueLimit, RequestDelegate onRejected = null, RequestDelegate next = null)
37
public static
ConcurrencyLimiterMiddleware
CreateTestMiddleware_StackPolicy(int maxConcurrentRequests, int requestQueueLimit, RequestDelegate onRejected = null, RequestDelegate next = null)