17 references to Invoke
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (6)
QueueEmptyOverhead.cs (2)
53
await _middlewareQueue.
Invoke
(null);
62
await _middlewareStack.
Invoke
(null);
QueueFullOverhead.cs (2)
71
_ = _middlewareStack.
Invoke
(null);
82
_ = _middlewareQueue.
Invoke
(null);
QueueRequestsOverwritten.cs (2)
78
_ = _middlewareQueue.
Invoke
(new DefaultHttpContext());
90
_ = _middlewareStack.
Invoke
(new DefaultHttpContext());
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (11)
MiddlewareTests.cs (11)
25
await middleware.
Invoke
(new DefaultHttpContext());
43
await middleware.
Invoke
(context).DefaultTimeout();
59
await middleware.
Invoke
(new DefaultHttpContext()).DefaultTimeout();
70
var task1 = middleware.
Invoke
(new DefaultHttpContext());
74
var task2 = middleware.
Invoke
(new DefaultHttpContext());
93
var task1 = middleware.
Invoke
(new DefaultHttpContext());
119
await Assert.ThrowsAsync<DivideByZeroException>(() => middleware.
Invoke
(new DefaultHttpContext())).DefaultTimeout();
158
var firstRequest = middleware.
Invoke
(new DefaultHttpContext());
164
await Assert.ThrowsAsync<DivideByZeroException>(() => middleware.
Invoke
(context)).DefaultTimeout();
175
var thirdRequest = middleware.
Invoke
(new DefaultHttpContext());
195
await middleware.
Invoke
(new DefaultHttpContext());