27 references to Invoke
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
EndpointRoutingShortCircuitBenchmark.cs (2)
56await _normalEndpointMiddleware.Invoke(context); 63await _shortCircuitEndpointMiddleware.Invoke(context);
Microsoft.AspNetCore.Routing.Tests (25)
EndpointRoutingMiddlewareFormOptionsTest.cs (5)
43await middleware.Invoke(httpContext); 77await middleware.Invoke(httpContext); 115await middleware.Invoke(httpContext); 150await middleware.Invoke(httpContext); 182await middleware.Invoke(httpContext);
EndpointRoutingMiddlewareTest.cs (15)
33await middleware.Invoke(httpContext); 50await middleware.Invoke(httpContext); 83await middleware.Invoke(httpContext); 100await middleware.Invoke(httpContext); 123await middleware.Invoke(httpContext); 152await Assert.ThrowsAsync<InvalidTimeZoneException>(async () => await middleware.Invoke(httpContext)); 153await Assert.ThrowsAsync<InvalidTimeZoneException>(async () => await middleware.Invoke(httpContext)); 175await middleware.Invoke(httpContext); 197await middleware.Invoke(httpContext); 225await Assert.ThrowsAsync<InvalidOperationException>(() => middleware.Invoke(httpContext)); 254await middleware.Invoke(httpContext); 290await middleware.Invoke(httpContext); 319await middleware.Invoke(httpContext); 347await middleware.Invoke(httpContext); 378await middleware.Invoke(httpContext);
RoutingMetricsTests.cs (5)
41await middleware.Invoke(httpContext); 69await middleware.Invoke(httpContext); 103await middleware.Invoke(httpContext); 130await middleware.Invoke(httpContext); 154await middleware.Invoke(httpContext);