21 references to Invoke
Microsoft.AspNetCore.Http.Microbenchmarks (6)
RequestTimeoutsMiddlewareBenchmark.cs (6)
63await _middlewareWithNoTimeout.Invoke(context); 71await _middleware.Invoke(context); 82await _middleware.Invoke(context); 93await _middleware.Invoke(context); 104await _middleware.Invoke(context); 112await _middlewareWithThrow.Invoke(context);
Microsoft.AspNetCore.Http.Tests (15)
Timeouts\RequestTimeoutsMiddlewareTests.cs (15)
20await middleware.Invoke(context); 36await middleware.Invoke(context); 52await middleware.Invoke(context); 67await middleware.Invoke(context); 82await middleware.Invoke(context); 99await middleware.Invoke(context); 115await middleware.Invoke(context); 131await middleware.Invoke(context); 147await middleware.Invoke(context); 168await middleware.Invoke(context); 183await Assert.ThrowsAsync<InvalidOperationException>(() => middleware.Invoke(context)); 195await middleware.Invoke(context); 211await middleware.Invoke(context); 231await middleware.Invoke(context); 248await Assert.ThrowsAsync<OperationCanceledException>(() => middleware.Invoke(context));