755 references to RequestDelegate
Aspire.Dashboard (4)
BasicLinkedApp (1)
BasicWebSite (2)
CorsMiddlewareWebSite (1)
CustomAuthorizationFailureResponse (1)
Diagnostics.EFCore.FunctionalTests (11)
Http2SampleApp (2)
IIS.Microbenchmarks (2)
IIS.Tests (3)
InMemory.FunctionalTests (50)
InProcessWebSite (2)
Interop.FunctionalTests (4)
Microsoft.AspNetCore (8)
Microsoft.AspNetCore.Antiforgery (2)
Microsoft.AspNetCore.Antiforgery.Test (1)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Test (6)
Microsoft.AspNetCore.Authorization.Policy (7)
Microsoft.AspNetCore.Authorization.Test (10)
Microsoft.AspNetCore.Components.Server (5)
Microsoft.AspNetCore.Components.Server.Tests (4)
Microsoft.AspNetCore.Components.WebAssembly.Server (3)
Microsoft.AspNetCore.Components.WebAssembly.Server.Tests (9)
Microsoft.AspNetCore.ConcurrencyLimiter (6)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (3)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (6)
Microsoft.AspNetCore.CookiePolicy (3)
Microsoft.AspNetCore.CookiePolicy.Test (5)
Microsoft.AspNetCore.Cors (4)
Microsoft.AspNetCore.Cors.Test (13)
CorsMiddlewareTests.cs (13)
386Mock.Of<RequestDelegate>(),
415Mock.Of<RequestDelegate>(),
652Mock.Of<RequestDelegate>(),
693Mock.Of<RequestDelegate>(),
723Mock.Of<RequestDelegate>(),
815Mock.Of<RequestDelegate>(),
850Mock.Of<RequestDelegate>(),
887Mock.Of<RequestDelegate>(),
920Mock.Of<RequestDelegate>(),
950Mock.Of<RequestDelegate>(),
977Mock.Of<RequestDelegate>(),
1002Mock.Of<RequestDelegate>(),
1026Mock.Of<RequestDelegate>(),
Microsoft.AspNetCore.Diagnostics (26)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (4)
Microsoft.AspNetCore.Diagnostics.HealthChecks (3)
Microsoft.AspNetCore.Diagnostics.Middleware (10)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Diagnostics.Tests (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.HeaderPropagation (2)
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
Microsoft.AspNetCore.HostFiltering (2)
Microsoft.AspNetCore.Hosting (6)
Microsoft.AspNetCore.Hosting.Tests (7)
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (1)
Microsoft.AspNetCore.Http (14)
Microsoft.AspNetCore.Http.Abstractions (37)
Extensions\UseExtensions.cs (4)
15/// If you aren't calling the next function, use <see cref="RunExtensions.Run(IApplicationBuilder, RequestDelegate)"/> instead.
17/// Prefer using <see cref="Use(IApplicationBuilder, Func{HttpContext, RequestDelegate, Task})"/> for better performance as shown below:
43/// If you aren't calling the next function, use <see cref="RunExtensions.Run(IApplicationBuilder, RequestDelegate)"/> instead.
48public static IApplicationBuilder Use(this IApplicationBuilder app, Func<HttpContext, RequestDelegate, Task> middleware)
Microsoft.AspNetCore.Http.Abstractions.Tests (41)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Http.Extensions (16)
Microsoft.AspNetCore.Http.Extensions.Tests (55)
Microsoft.AspNetCore.Http.Tests (8)
Microsoft.AspNetCore.HttpLogging (4)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.HttpOverrides (8)
Microsoft.AspNetCore.HttpsPolicy (6)
Microsoft.AspNetCore.Localization (3)
Microsoft.AspNetCore.MiddlewareAnalysis (5)
Microsoft.AspNetCore.Mvc.Core (16)
Microsoft.AspNetCore.Mvc.Core.Test (10)
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Microsoft.AspNetCore.OutputCaching (4)
Microsoft.AspNetCore.OutputCaching.Tests (5)
Microsoft.AspNetCore.Owin (5)
Microsoft.AspNetCore.RateLimiting (3)
Microsoft.AspNetCore.RateLimiting.Tests (3)
Microsoft.AspNetCore.RequestDecompression (2)
Microsoft.AspNetCore.RequestDecompression.Tests (1)
Microsoft.AspNetCore.ResponseCaching (4)
Microsoft.AspNetCore.ResponseCaching.Tests (5)
Microsoft.AspNetCore.ResponseCompression (2)
Microsoft.AspNetCore.Rewrite (6)
Microsoft.AspNetCore.Routing (48)
RequestDelegateRouteBuilderExtensions.cs (13)
23/// <param name="handler">The <see cref="RequestDelegate"/> route handler.</param>
25public static IRouteBuilder MapRoute(this IRouteBuilder builder, [StringSyntax("Route")] string template, RequestDelegate handler)
60/// <param name="handler">The <see cref="RequestDelegate"/> route handler.</param>
62public static IRouteBuilder MapDelete(this IRouteBuilder builder, [StringSyntax("Route")] string template, RequestDelegate handler)
102/// <param name="handler">The <see cref="RequestDelegate"/> route handler.</param>
104public static IRouteBuilder MapGet(this IRouteBuilder builder, [StringSyntax("Route")] string template, RequestDelegate handler)
144/// <param name="handler">The <see cref="RequestDelegate"/> route handler.</param>
146public static IRouteBuilder MapPost(this IRouteBuilder builder, [StringSyntax("Route")] string template, RequestDelegate handler)
186/// <param name="handler">The <see cref="RequestDelegate"/> route handler.</param>
188public static IRouteBuilder MapPut(this IRouteBuilder builder, [StringSyntax("Route")] string template, RequestDelegate handler)
237RequestDelegate requestDelegate = (httpContext) =>
252/// <param name="handler">The <see cref="RequestDelegate"/> route handler.</param>
258RequestDelegate handler)
Microsoft.AspNetCore.Routing.Abstractions (4)
Microsoft.AspNetCore.Routing.FunctionalTests (1)
Microsoft.AspNetCore.Routing.Tests (74)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (27)
34IEndpointConventionBuilder MapGet(IEndpointRouteBuilder routes, string template, RequestDelegate action) =>
37IEndpointConventionBuilder MapPost(IEndpointRouteBuilder routes, string template, RequestDelegate action) =>
40IEndpointConventionBuilder MapPut(IEndpointRouteBuilder routes, string template, RequestDelegate action) =>
43IEndpointConventionBuilder MapDelete(IEndpointRouteBuilder routes, string template, RequestDelegate action) =>
46IEndpointConventionBuilder Map(IEndpointRouteBuilder routes, string template, RequestDelegate action) =>
51new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)MapGet },
52new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)MapPost },
53new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)MapPut },
54new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)MapDelete },
55new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)Map },
65RequestDelegate requestDelegate = (d) => Task.CompletedTask;
80public async Task MapEndpoint_ReturnGenericTypeTask_GeneratedDelegate(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map)
102var requestDelegate = endpoint.RequestDelegate!;
112public async Task MapEndpoint_CanBeFiltered_EndpointFilterFactory(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map)
119RequestDelegate initialRequestDelegate = static (context) => Task.CompletedTask;
138var requestDelegate = endpoint.RequestDelegate!;
154RequestDelegate initialRequestDelegate = static (context) => Task.CompletedTask;
166var requestDelegate = endpoint.RequestDelegate!;
184RequestDelegate initialRequestDelegate = static (context) =>
217var requestDelegate = endpoint.RequestDelegate!;
268RequestDelegate requestDelegate = (HttpContext context) => Task.CompletedTask;
327public void MapEndpoint_UsesOriginalRequestDelegateInstance_IfFilterDoesNotChangePerRequestBehavior(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map)
331RequestDelegate initialRequestDelegate = static (context) => Task.CompletedTask;
352RequestDelegate requestDelegate = (d) => Task.CompletedTask;
388Expression<RequestDelegate> handler = context => Task.CompletedTask;
431public void Map_EndpointMetadataNotDuplicated(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map)
454public void AddingMetadataAfterBuildingEndpointThrows(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (13)
Utilities.cs (10)
43internal static IServer CreateHttpServer(out string baseAddress, RequestDelegate app, ILoggerFactory loggerFactory)
49internal static IServer CreateHttpServer(out string baseAddress, RequestDelegate app, Action<HttpSysOptions> configureOptions, ILoggerFactory loggerFactory)
55internal static IServer CreateHttpServerReturnRoot(string path, out string root, RequestDelegate app, ILoggerFactory loggerFactory)
61internal static IServer CreateHttpAuthServer(AuthenticationSchemes authType, bool allowAnonymous, out string baseAddress, RequestDelegate app, ILoggerFactory loggerFactory)
71internal static IHost CreateDynamicHost(AuthenticationSchemes authType, bool allowAnonymous, out string root, RequestDelegate app, ILoggerFactory loggerFactory)
80internal static IHost CreateDynamicHost(out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory)
85internal static IHost CreateDynamicHost(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory)
124internal static IServer CreateDynamicHttpServer(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory)
139internal static IServer CreateDynamicHttpsServer(out string baseAddress, RequestDelegate app, ILoggerFactory loggerFactory)
144internal static IServer CreateDynamicHttpsServer(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory = null)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (4)
Microsoft.AspNetCore.Server.IISIntegration (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (9)
Microsoft.AspNetCore.Session (3)
Microsoft.AspNetCore.SpaProxy (2)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticFiles (9)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.AspNetCore.TestHost.Tests (30)
Microsoft.AspNetCore.Tests (4)
Microsoft.AspNetCore.WebSockets (2)
RoutingSandbox (5)
RoutingWebSite (3)
Sockets.BindTests (7)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (7)
34private readonly RequestDelegate _app;
36public TestServer(RequestDelegate app)
41public TestServer(RequestDelegate app, TestServiceContext context)
46public TestServer(RequestDelegate app, TestServiceContext context, ListenOptions listenOptions)
51public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions, Action<IServiceCollection> configureServices = null)
67public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel)
72public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel, Action<IServiceCollection> configureServices)
Sockets.FunctionalTests (7)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (7)
34private readonly RequestDelegate _app;
36public TestServer(RequestDelegate app)
41public TestServer(RequestDelegate app, TestServiceContext context)
46public TestServer(RequestDelegate app, TestServiceContext context, ListenOptions listenOptions)
51public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions, Action<IServiceCollection> configureServices = null)
67public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel)
72public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel, Action<IServiceCollection> configureServices)