11 writes to RequestDelegate
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointFactory.cs (1)
54builder.RequestDelegate = static httpContext =>
Microsoft.AspNetCore.Components.Server (2)
Builder\ServerRazorComponentsEndpointConventionBuilderExtensions.cs (1)
56b.RequestDelegate = async context =>
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
103c.RequestDelegate = builder.Build();
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (1)
42endpointBuilder.RequestDelegate = httpContext =>
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
298endpointBuilder.RequestDelegate = finalRequestDelegate;
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
64RequestDelegate = _requestDelegate,
Microsoft.AspNetCore.Routing (2)
RouteEndpointBuilder.cs (1)
42RequestDelegate = requestDelegate;
RouteEndpointDataSource.cs (1)
251builder.RequestDelegate = conventionOverriddenRequestDelegate ?? factoryCreatedRequestDelegate;
Microsoft.AspNetCore.Routing.Tests (1)
Builder\GroupTest.cs (1)
275builder.RequestDelegate = async ctx =>
Microsoft.AspNetCore.StaticAssets (2)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
41builder.RequestDelegate = async context =>
StaticAssetEndpointFactory.cs (1)
45routeEndpointBuilder.RequestDelegate = invoker.Invoke;
20 references to RequestDelegate
Microsoft.AspNetCore.Components.Server (2)
Builder\ServerRazorComponentsEndpointConventionBuilderExtensions.cs (1)
55var original = b.RequestDelegate;
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
89var originalDelegate = c.RequestDelegate;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (1)
40if (needsCoopHeaders && endpointBuilder.RequestDelegate is { } originalDelegate)
Microsoft.AspNetCore.Cors.Test (1)
CorsEndpointConventionBuilderExtensionsTests.cs (1)
92return new Endpoint(RequestDelegate, new EndpointMetadataCollection(Metadata), DisplayName);
Microsoft.AspNetCore.Http.Extensions (2)
RequestDelegateFactoryOptions.cs (2)
39/// The <see cref="EndpointBuilder.RequestDelegate"/> must be <see langword="null"/>. After the call to <see cref="RequestDelegateFactory.Create(Delegate, RequestDelegateFactoryOptions?)"/>, 40/// <see cref="EndpointBuilder.RequestDelegate"/> will be the same as <see cref="RequestDelegateResult.RequestDelegate"/>.
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
3083Assert.Same(options.EndpointBuilder.RequestDelegate, result.RequestDelegate);
Microsoft.AspNetCore.HttpLogging.Tests (1)
HttpLoggingEndpointConventionBuilderTests.cs (1)
58return new Endpoint(RequestDelegate, new EndpointMetadataCollection(Metadata), DisplayName);
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
551return new Endpoint(RequestDelegate, new EndpointMetadataCollection(Metadata), DisplayName);
Microsoft.AspNetCore.RateLimiting.Tests (1)
TestEndpointBuilder.cs (1)
18return new Endpoint(RequestDelegate, new EndpointMetadataCollection(Metadata), DisplayName);
Microsoft.AspNetCore.Routing (5)
RouteEndpointBuilder.cs (3)
50if (RequestDelegate is null) 52throw new InvalidOperationException($"{nameof(RequestDelegate)} must be specified to construct a {nameof(RouteEndpoint)}."); 56RequestDelegate,
RouteEndpointDataSource.cs (2)
236var conventionOverriddenRequestDelegate = ReferenceEquals(builder.RequestDelegate, redirectRequestDelegate) ? null : builder.RequestDelegate;
Microsoft.AspNetCore.Routing.Tests (4)
Builder\GroupTest.cs (1)
272var originalRequestDelegate = builder.RequestDelegate!;
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (2)
73Assert.Equal(requestDelegate, endpointBuilder1.RequestDelegate); 360Assert.Equal(requestDelegate, endpointBuilder1.RequestDelegate);
RouteEndpointBuilderTest.cs (1)
17Assert.Null(builder.RequestDelegate);
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
31var original = builder.RequestDelegate!;