1 write to RequestDelegate
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\Endpoint.cs (1)
30RequestDelegate = requestDelegate;
287 references to RequestDelegate
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentEndpointFactoryTest.cs (1)
45Assert.NotNull(endpoint.RequestDelegate);
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
148var builder = new RouteEndpointBuilder(endpoint.RequestDelegate, routeEndpoint.RoutePattern, routeEndpoint.Order);
Microsoft.AspNetCore.Http (1)
Builder\ApplicationBuilder.cs (1)
171var endpointRequestDelegate = endpoint?.RequestDelegate;
Microsoft.AspNetCore.Http.Extensions.Tests (237)
RequestDelegateGenerator\CompileTimeCreationTests.cs (15)
33await endpoint.RequestDelegate(httpContext); 46var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => endpoint.RequestDelegate(httpContext)); 148await endpoints[i].RequestDelegate(httpContext); 184await endpoint.RequestDelegate(httpContext); 360await endpoint.RequestDelegate(httpContext); 384await endpoint.RequestDelegate(httpContext); 411await endpoint.RequestDelegate(httpContext); 458var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await endpoint.RequestDelegate(httpContext)); 475_ = await Assert.ThrowsAsync<NullReferenceException>(async () => await endpoint.RequestDelegate(httpContext)); 505await endpoint1.RequestDelegate(httpContext1); 512await endpoint2.RequestDelegate(httpContext2); 551await endpoint1.RequestDelegate(httpContext1); 556await endpoint2.RequestDelegate(httpContext2); 594await endpoint.RequestDelegate(httpContext); 613await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\CompileTimeCreationTests.Routes.cs (3)
26await endpoint.RequestDelegate(httpContext); 49await endpoint.RequestDelegate(httpContext); 78await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (31)
38await endpoint.RequestDelegate(httpContext); 59await endpoint.RequestDelegate(httpContext); 80await endpoint.RequestDelegate(httpContext); 101await endpoint.RequestDelegate(httpContext); 177await endpoint.RequestDelegate(httpContext); 199await endpoint.RequestDelegate(httpContext); 220await endpoint.RequestDelegate(httpContext); 241await endpoint.RequestDelegate(httpContext); 261await endpoint.RequestDelegate(httpContext); 282await endpoint.RequestDelegate(httpContext); 303await endpoint.RequestDelegate(httpContext); 324await endpoint.RequestDelegate(httpContext); 346await endpoint.RequestDelegate(httpContext); 367await endpoint.RequestDelegate(httpContext); 389await endpoint.RequestDelegate(httpContext); 410await endpoint.RequestDelegate(httpContext); 432await endpoint.RequestDelegate(httpContext); 453await endpoint.RequestDelegate(httpContext); 475await endpoint.RequestDelegate(httpContext); 496await endpoint.RequestDelegate(httpContext); 518await endpoint.RequestDelegate(httpContext); 539await endpoint.RequestDelegate(httpContext); 561await endpoint.RequestDelegate(httpContext); 582await endpoint.RequestDelegate(httpContext); 603await endpoint.RequestDelegate(httpContext); 630await endpoint.RequestDelegate(httpContext); 657await endpoint.RequestDelegate(httpContext); 684await endpoint.RequestDelegate(httpContext); 711await endpoint.RequestDelegate(httpContext); 738await endpoint.RequestDelegate(httpContext); 772await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.AsParameters.cs (9)
30await endpoint.RequestDelegate(httpContext); 70await endpoint.RequestDelegate(httpContext); 98await endpoint.RequestDelegate(httpContext); 202await endpoint.RequestDelegate(httpContext); 223await endpoint.RequestDelegate(httpContext); 285await endpoint.RequestDelegate(httpContext); 316await endpoint.RequestDelegate(httpContext); 342await endpoint.RequestDelegate(httpContext); 383await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.BindAsync.cs (11)
58await endpoint.RequestDelegate(httpContext); 79await endpoint.RequestDelegate(httpContext); 103var ex = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext)); 108await endpoint.RequestDelegate(httpContext); 132var ex = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext)); 137await endpoint.RequestDelegate(httpContext); 180await endpoints[i].RequestDelegate(httpContext); 197var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => endpoint.RequestDelegate(httpContext)); 246await endpoint.RequestDelegate(httpContext); 302await endpoint.RequestDelegate(httpContext); 327await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.cs (23)
43await endpoint.RequestDelegate(httpContext); 73await endpoint.RequestDelegate(httpContext); 96await endpoint.RequestDelegate(httpContext); 159await endpoints[0].RequestDelegate(httpContext); 163await endpoints[1].RequestDelegate(httpContext); 167await endpoints[2].RequestDelegate(httpContext); 216await endpoint.RequestDelegate(httpContext); 278await endpoint.RequestDelegate(httpContext); 283await Assert.ThrowsAsync<InvalidOperationException>(() => endpoint.RequestDelegate(httpContext)); 314await Assert.ThrowsAsync<InvalidOperationException>(() => endpoints[0].RequestDelegate(httpContext)); 320await endpoints[0].RequestDelegate(httpContext); 326await endpoints[1].RequestDelegate(httpContext); 332await endpoints[2].RequestDelegate(httpContext); 395await endpoint.RequestDelegate(httpContext); 413await endpoint.RequestDelegate(httpContext); 437await endpoint.RequestDelegate(httpContext); 463await endpoint.RequestDelegate(httpContext); 485await endpoint.RequestDelegate(httpContext); 510await endpoint.RequestDelegate(httpContext); 535await endpoint.RequestDelegate(httpContext); 560await endpoint.RequestDelegate(httpContext); 596await endpoint.RequestDelegate(httpContext); 625await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.Filters.cs (14)
34await endpoint.RequestDelegate(httpContext); 68await endpoint.RequestDelegate(httpContext); 100await endpoint.RequestDelegate(httpContext); 148await endpoint.RequestDelegate(httpContext); 189await endpoint.RequestDelegate(httpContext); 241await endpoint.RequestDelegate(httpContext); 270await endpoint.RequestDelegate(httpContext); 305await endpoint.RequestDelegate(httpContext); 346await endpoint.RequestDelegate(httpContext); 404await endpoint.RequestDelegate(httpContext); 461await endpoint.RequestDelegate(httpContext); 527await endpoint.RequestDelegate(httpContext); 551await endpoint.RequestDelegate(httpContext); 618await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (25)
39await endpoint.RequestDelegate(httpContext); 74await endpoint.RequestDelegate(httpContext); 109await endpoint.RequestDelegate(httpContext); 147await endpoint.RequestDelegate(httpContext); 185await endpoint.RequestDelegate(httpContext); 226await endpoint.RequestDelegate(httpContext); 263await endpoint.RequestDelegate(httpContext); 300await endpoint.RequestDelegate(httpContext); 373await endpoint.RequestDelegate(httpContext); 406await endpoint.RequestDelegate(httpContext); 457await endpoint.RequestDelegate(httpContext); 502await endpoint.RequestDelegate(httpContext); 554await endpoint.RequestDelegate(httpContext); 601await endpoint.RequestDelegate(httpContext); 648await endpoint.RequestDelegate(httpContext); 677await endpoint.RequestDelegate(httpContext); 710await endpoint.RequestDelegate(httpContext); 740await endpoint.RequestDelegate(httpContext); 770await endpoint.RequestDelegate(httpContext); 833await endpoint.RequestDelegate(httpContext); 877await endpoint.RequestDelegate(httpContext); 902await endpoint.RequestDelegate(httpContext); 935await endpoint.RequestDelegate(httpContext); 967await endpoint.RequestDelegate(httpContext); 1004var badHttpRequestException = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext));
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (13)
93await endpoint.RequestDelegate(httpContext); 109await endpoint.RequestDelegate(httpContext); 137await endpoints[0].RequestDelegate(httpContext); 142await endpoints[0].RequestDelegate(httpContext); 147await endpoints[1].RequestDelegate(httpContext); 152await endpoints[1].RequestDelegate(httpContext); 237await endpoint.RequestDelegate(httpContext); 278await endpoint.RequestDelegate(httpContext); 322await endpoint.RequestDelegate(httpContext); 363await endpoint.RequestDelegate(httpContext); 402await endpoint.RequestDelegate(httpContext); 434await endpoint.RequestDelegate(httpContext); 467await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (5)
60await endpoint.RequestDelegate(httpContext); 85await endpoint.RequestDelegate(httpContext); 125await endpoint.RequestDelegate(httpContext); 202var ex = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext)); 223await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (11)
26await endpoint.RequestDelegate(httpContext); 72await endpoints[0].RequestDelegate(httpContext1); 74await endpoints[1].RequestDelegate(httpContext2); 92await endpoint.RequestDelegate(httpContext); 112await endpoint.RequestDelegate(httpContext); 128async () => await endpoint.RequestDelegate(httpContext)); 143await endpoint.RequestDelegate(httpContext); 169await endpoint.RequestDelegate(httpContext); 198await endpoint.RequestDelegate(httpContext); 225var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await endpoint.RequestDelegate(httpContext)); 251await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (15)
38await endpoint.RequestDelegate(httpContext); 101await endpoint.RequestDelegate(httpContext); 152var badHttpRequestException = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext)); 191var badHttpRequestException = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext)); 222await endpoint.RequestDelegate(httpContext); 269var badHttpRequestException = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext)); 302await endpoint.RequestDelegate(httpContext); 348var badHttpRequestException = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext)); 388var request = endpoint.RequestDelegate(httpContext); 437var request = endpoint.RequestDelegate(httpContext); 486await endpoint.RequestDelegate(httpContext); 522await endpoint.RequestDelegate(httpContext); 563var badHttpRequestException = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext)); 602await endpoint.RequestDelegate(httpContext); 642var badHttpRequestException = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate(httpContext));
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (5)
60await endpoint.RequestDelegate(httpContext); 102await endpoint.RequestDelegate(httpContext); 123await endpoint.RequestDelegate(httpContext); 138await endpoint.RequestDelegate(httpContext); 180await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (24)
37await endpoint.RequestDelegate(httpContext); 62await endpoint.RequestDelegate(httpContext); 84await endpoint.RequestDelegate(httpContext); 118await endpoint.RequestDelegate(httpContext); 142await endpoint.RequestDelegate(httpContext); 170await endpoint.RequestDelegate(httpContext); 195await endpoint.RequestDelegate(httpContext); 223await endpoint.RequestDelegate(httpContext); 252await endpoints[0].RequestDelegate(httpContext); 256await endpoints[1].RequestDelegate(httpContext); 313await endpoint.RequestDelegate(httpContext); 358await endpoint.RequestDelegate(httpContext); 389await endpoint.RequestDelegate(httpContext); 408await endpoint.RequestDelegate(httpContext); 465await endpoint.RequestDelegate(httpContext); 486await endpoint.RequestDelegate(httpContext); 567await endpoint.RequestDelegate(httpContext); 651await endpoint.RequestDelegate(httpContext); 674await endpoint.RequestDelegate(httpContext); 762await endpoint.RequestDelegate(httpContext); 778await endpoint.RequestDelegate(httpContext); 834await endpoint.RequestDelegate(httpContext); 890await endpoint.RequestDelegate(httpContext); 974await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.RouteParameter.cs (7)
56await endpoint.RequestDelegate(httpContext); 121await endpoint.RequestDelegate(httpContext); 138await endpoint.RequestDelegate(httpContext); 155await endpoint.RequestDelegate(httpContext); 188await endpoint.RequestDelegate(httpContext); 204var requestDelegate = endpoint.RequestDelegate; 228var requestDelegate = endpoint.RequestDelegate;
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (8)
38await endpoint.RequestDelegate(httpContext); 61await endpoint.RequestDelegate(httpContext); 82await endpoint.RequestDelegate(httpContext); 101await endpoint.RequestDelegate(httpContext); 120await endpoint.RequestDelegate(httpContext); 145await endpoint.RequestDelegate(httpContext); 249await endpoint.RequestDelegate(httpContext); 281await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (9)
81await endpoint.RequestDelegate(httpContext); 118await endpoint.RequestDelegate(httpContext); 150await endpoint.RequestDelegate(httpContext); 175await endpoint.RequestDelegate(httpContext); 198await endpoint.RequestDelegate(httpContext); 214await endpoint.RequestDelegate(httpContext); 239await endpoint.RequestDelegate(httpContext); 258var requestDelegate = endpoint.RequestDelegate; 283await Assert.ThrowsAsync<NotImplementedException>(async () => await endpoint.RequestDelegate(httpContext));
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (7)
34await endpoint.RequestDelegate(httpContext); 70await endpoint.RequestDelegate(httpContext); 102await endpoint.RequestDelegate(httpContext); 139await endpoint.RequestDelegate(httpContext); 176await endpoint.RequestDelegate(httpContext); 211await endpoint.RequestDelegate(httpContext); 248await endpoint.RequestDelegate(httpContext);
RequestDelegateGenerator\RuntimeCreationTests.cs (2)
40await endpoint.RequestDelegate(httpContext); 54await endpoint.RequestDelegate(httpContext);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\ActionEndpointFactoryTest.cs (1)
287Assert.Same(del, endpoint.RequestDelegate);
Microsoft.AspNetCore.Routing (7)
EndpointDataSource.cs (1)
55var routeEndpointBuilder = new RouteEndpointBuilder(routeEndpoint.RequestDelegate, fullRoutePattern, routeEndpoint.Order)
EndpointMiddleware.cs (3)
60if (endpoint.RequestDelegate is not null) 65return endpoint.RequestDelegate(httpContext); 72var requestTask = endpoint.RequestDelegate(httpContext);
EndpointRoutingMiddleware.cs (3)
186if (endpoint.RequestDelegate is not null) 191return endpoint.RequestDelegate(httpContext); 198var requestTask = endpoint.RequestDelegate(httpContext);
Microsoft.AspNetCore.Routing.Tests (36)
Builder\GroupTest.cs (6)
48await endpoint.RequestDelegate!(httpContext); 81await endpoint.RequestDelegate!(httpContext); 115await endpoint.RequestDelegate!(httpContext); 228await conventionBuiltEndpoint!.RequestDelegate!(httpContext); 232await endpoint.RequestDelegate!(httpContext); 290await endpoint!.RequestDelegate!(httpContext);
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (14)
101Assert.NotNull(endpoint.RequestDelegate); 102var requestDelegate = endpoint.RequestDelegate!; 135Assert.NotSame(initialRequestDelegate, endpoint.RequestDelegate); 137Assert.NotNull(endpoint.RequestDelegate); 138var requestDelegate = endpoint.RequestDelegate!; 163Assert.NotSame(initialRequestDelegate, endpoint.RequestDelegate); 165Assert.NotNull(endpoint.RequestDelegate); 166var requestDelegate = endpoint.RequestDelegate!; 214Assert.NotSame(initialRequestDelegate, endpoint.RequestDelegate); 216Assert.NotNull(endpoint.RequestDelegate); 217var requestDelegate = endpoint.RequestDelegate!; 254await endpoint.RequestDelegate!(httpContext); 283await endpoint.RequestDelegate!(httpContext); 343Assert.Same(initialRequestDelegate, endpoint.RequestDelegate);
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (11)
165await endpoint.RequestDelegate!(httpContext); 205await endpoint.RequestDelegate!(httpContext); 540await endpoint.RequestDelegate!(httpContext); 585await endpoint.RequestDelegate!(httpContext); 618await endpoint.RequestDelegate!(httpContext); 642await endpoint.RequestDelegate!(httpContext); 826var ex = await Assert.ThrowsAsync<BadHttpRequestException>(() => endpoint.RequestDelegate!(httpContext)); 831await endpoint.RequestDelegate!(httpContext); 851await endpoint.RequestDelegate!(httpContext); 901await routeEndpoint.RequestDelegate!(httpContext); 977await endpoint.RequestDelegate!(httpContext);
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (3)
202await httpContext.GetEndpoint().RequestDelegate(httpContext); 312await httpContext.GetEndpoint().RequestDelegate(httpContext); 317await httpContext.GetEndpoint().RequestDelegate(httpContext);
RouteEndpointBuilderTest.cs (2)
43Assert.Equal(requestDelegate, endpoint.RequestDelegate); 169await endpoint.RequestDelegate(new DefaultHttpContext());
Microsoft.AspNetCore.StaticFiles (3)
DefaultFilesMiddleware.cs (1)
51if (context.GetEndpoint()?.RequestDelegate is null
DirectoryBrowserMiddleware.cs (1)
64if (context.GetEndpoint()?.RequestDelegate is null
StaticFileMiddleware.cs (1)
86private static bool ValidateNoEndpointDelegate(HttpContext context) => context.GetEndpoint()?.RequestDelegate is null;