297 references to RequestDelegate
Aspire.Dashboard (4)
Model\BrowserSecurityHeadersMiddleware.cs (2)
16private readonly RequestDelegate _next; 20public BrowserSecurityHeadersMiddleware(RequestDelegate next, IHostEnvironment environment)
Model\ValidateTokenMiddleware.cs (2)
16private readonly RequestDelegate _next; 20public ValidateTokenMiddleware(RequestDelegate next, IOptionsMonitor<DashboardOptions> options, ILogger<ValidateTokenMiddleware> logger)
Microsoft.AspNetCore (8)
WebApplication.cs (4)
207internal RequestDelegate BuildRequestDelegate() => ApplicationBuilder.Build(); 208RequestDelegate IApplicationBuilder.Build() => BuildRequestDelegate(); 224public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware)
WebApplicationBuilder.cs (2)
521public RequestDelegate CreateMiddleware(RequestDelegate next)
WebHost.cs (2)
34public static IWebHost Start(RequestDelegate app) => 44public static IWebHost Start([StringSyntax(StringSyntaxAttribute.Uri)] string url, RequestDelegate app)
Microsoft.AspNetCore.Antiforgery (2)
AntiforgeryMiddleware.cs (2)
8internal sealed class AntiforgeryMiddleware(IAntiforgery antiforgery, RequestDelegate next) 10private readonly RequestDelegate _next = next;
Microsoft.AspNetCore.Authentication (2)
AuthenticationMiddleware.cs (2)
15private readonly RequestDelegate _next; 22public AuthenticationMiddleware(RequestDelegate next, IAuthenticationSchemeProvider schemes)
Microsoft.AspNetCore.Authorization.Policy (7)
AuthorizationMiddleware.cs (5)
16RequestDelegate next, 37private readonly RequestDelegate _next; 48public AuthorizationMiddleware(RequestDelegate next, 63public AuthorizationMiddleware(RequestDelegate next, 77public AuthorizationMiddleware(RequestDelegate next,
AuthorizationMiddlewareResultHandler.cs (1)
15public Task HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
IAuthorizationMiddlewareResultHandler.cs (1)
23Task HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult);
Microsoft.AspNetCore.Components.Server (5)
Builder\ServerRazorComponentsEndpointConventionBuilderExtensions.cs (1)
55var original = b.RequestDelegate;
CircuitDisconnectMiddleware.cs (2)
19RequestDelegate next) 30public RequestDelegate Next { get; }
CircuitJavaScriptInitializationMiddleware.cs (1)
16public CircuitJavaScriptInitializationMiddleware(IOptions<CircuitOptions> options, RequestDelegate _)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
92var originalDelegate = c.RequestDelegate;
Microsoft.AspNetCore.CookiePolicy (3)
CookiePolicyMiddleware.cs (3)
26private readonly RequestDelegate _next; 35public CookiePolicyMiddleware(RequestDelegate next, IOptions<CookiePolicyOptions> options, ILoggerFactory factory) 47public CookiePolicyMiddleware(RequestDelegate next, IOptions<CookiePolicyOptions> options)
Microsoft.AspNetCore.Cors (4)
Infrastructure\CorsMiddleware.cs (4)
19private readonly RequestDelegate _next; 30RequestDelegate next, 45RequestDelegate next, 68RequestDelegate next,
Microsoft.AspNetCore.Diagnostics (27)
DeveloperExceptionPage\DeveloperExceptionPageMiddleware.cs (2)
23/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 30RequestDelegate next,
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
33private readonly RequestDelegate _next; 46RequestDelegate next,
ExceptionHandler\ExceptionHandlerExtensions.cs (2)
83var exceptionHandlerPipeline = subAppBuilder.Build(); 130var newNext = RerouteHelper.Reroute(app, routeBuilder, next);
ExceptionHandler\ExceptionHandlerMiddleware.cs (2)
23/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 28RequestDelegate next,
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (2)
24private readonly RequestDelegate _next; 34RequestDelegate next,
ExceptionHandler\ExceptionHandlerOptions.cs (2)
30/// The <see cref="RequestDelegate" /> that will handle the exception. If this is not 33public RequestDelegate? ExceptionHandler { get; set; }
src\aspnetcore\src\Shared\Reroute.cs (2)
14internal static RequestDelegate Reroute(IApplicationBuilder app, object routeBuilder, RequestDelegate next)
StatusCodePage\StatusCodeContext.cs (4)
19/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 20public StatusCodeContext(HttpContext context, StatusCodePagesOptions options, RequestDelegate next) 38/// Gets the <see cref="RequestDelegate"/> representing the next middleware in the pipeline. 40public RequestDelegate Next { get; private set; }
StatusCodePage\StatusCodePagesExtensions.cs (4)
138var tangent = builder.Build(); 162var newNext = RerouteHelper.Reroute(app, routeBuilder, next); 194var newNext = RerouteHelper.Reroute(app, routeBuilder, next); 215private static Func<StatusCodeContext, Task> CreateHandler(string pathFormat, string? queryFormat, RequestDelegate? next = null)
StatusCodePage\StatusCodePagesMiddleware.cs (3)
16private readonly RequestDelegate _next; 22/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 24public StatusCodePagesMiddleware(RequestDelegate next, IOptions<StatusCodePagesOptions> options)
WelcomePage\WelcomePageMiddleware.cs (2)
16private readonly RequestDelegate _next; 24public WelcomePageMiddleware(RequestDelegate next, IOptions<WelcomePageOptions> options)
Microsoft.AspNetCore.Diagnostics.HealthChecks (3)
Builder\HealthCheckEndpointRouteBuilderExtensions.cs (1)
67var pipeline = endpoints.CreateApplicationBuilder()
HealthCheckMiddleware.cs (2)
15private readonly RequestDelegate _next; 23RequestDelegate next,
Microsoft.AspNetCore.Diagnostics.Middleware (10)
Latency\AddServerTimingHeaderMiddleware.cs (2)
19private readonly RequestDelegate _next; 21public AddServerTimingHeaderMiddleware(RequestDelegate next)
Latency\CapturePipelineEntryMiddleware.cs (2)
18private readonly RequestDelegate _next; 20public CapturePipelineEntryMiddleware(RequestDelegate next, ILatencyContextTokenIssuer tokenIssuer)
Latency\CapturePipelineExitMiddleware.cs (2)
20private readonly RequestDelegate _next; 22public CapturePipelineExitMiddleware(RequestDelegate next, ILatencyContextTokenIssuer tokenIssuer)
Latency\CaptureResponseTimeMiddleware.cs (2)
20private readonly RequestDelegate _next; 22public CaptureResponseTimeMiddleware(RequestDelegate next, ILatencyContextTokenIssuer tokenIssuer)
Latency\RequestLatencyTelemetryMiddleware.cs (2)
33private readonly RequestDelegate _next; 36RequestDelegate next,
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\AddServerTimingHeaderMiddlewareTests.cs (1)
16private static readonly RequestDelegate _stubRequestDelegate =
Microsoft.AspNetCore.HostFiltering (2)
HostFilteringMiddleware.cs (2)
27private readonly RequestDelegate _next; 38RequestDelegate next,
Microsoft.AspNetCore.Hosting (6)
GenericHost\GenericWebHostService.cs (1)
122RequestDelegate? application = null;
Internal\ErrorPageBuilder.cs (1)
14public static RequestDelegate BuildErrorPageApplication(
Internal\HostingApplication.cs (2)
15private readonly RequestDelegate _application; 28RequestDelegate application,
Internal\WebHost.cs (2)
133var application = BuildApplication(); 201private RequestDelegate BuildApplication()
Microsoft.AspNetCore.Http (14)
Builder\ApplicationBuilder.cs (11)
23private readonly List<Func<RequestDelegate, RequestDelegate>> _components = new(); 120public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware) 128private static string CreateMiddlewareDescription(Func<RequestDelegate, RequestDelegate> middleware) 161/// Produces a <see cref="RequestDelegate"/> that executes added middlewares. 163/// <returns>The <see cref="RequestDelegate"/>.</returns> 164public RequestDelegate Build() 166RequestDelegate app = context => 171var endpointRequestDelegate = endpoint?.RequestDelegate;
Timeouts\RequestTimeoutPolicy.cs (1)
30public RequestDelegate? WriteTimeoutResponse { get; init; }
Timeouts\RequestTimeoutsMiddleware.cs (2)
12private readonly RequestDelegate _next; 18RequestDelegate next,
Microsoft.AspNetCore.Http.Abstractions (37)
EndpointFilterFactoryContext.cs (1)
15/// The <see cref="MethodInfo"/> associated with the current route handler, <see cref="RequestDelegate"/> or MVC action.
Extensions\EndpointBuilder.cs (1)
23public RequestDelegate? RequestDelegate { get; set; }
Extensions\MapExtensions.cs (1)
62var branch = branchBuilder.Build();
Extensions\MapMiddleware.cs (2)
13private readonly RequestDelegate _next; 21public MapMiddleware(RequestDelegate next, MapOptions options)
Extensions\MapOptions.cs (1)
21public RequestDelegate? Branch { get; set; }
Extensions\MapWhenExtensions.cs (1)
32var branch = branchBuilder.Build();
Extensions\MapWhenMiddleware.cs (2)
13private readonly RequestDelegate _next; 21public MapWhenMiddleware(RequestDelegate next, MapWhenOptions options)
Extensions\MapWhenOptions.cs (1)
35public RequestDelegate? Branch { get; set; }
Extensions\RunExtensions.cs (1)
18public static void Run(this IApplicationBuilder app, RequestDelegate handler)
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)
Extensions\UseMiddlewareExtensions.cs (6)
126public RequestDelegate CreateMiddleware(RequestDelegate next) 134return (RequestDelegate)_invokeMethod.CreateDelegate(typeof(RequestDelegate), instance); 168public RequestDelegate CreateMiddleware(RequestDelegate next)
Extensions\UsePathBaseExtensions.cs (1)
37var newNext = RerouteHelper.Reroute(app, routeBuilder, next);
Extensions\UsePathBaseMiddleware.cs (2)
13private readonly RequestDelegate _next; 21public UsePathBaseMiddleware(RequestDelegate next, PathString pathBase)
Extensions\UseWhenExtensions.cs (1)
39var branch = branchBuilder.Build();
IApplicationBuilder.cs (3)
37IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware); 50RequestDelegate Build();
IMiddleware.cs (1)
17Task InvokeAsync(HttpContext context, RequestDelegate next);
Metadata\IEndpointMetadataProvider.cs (1)
19/// This method is called by RequestDelegateFactory when creating a <see cref="RequestDelegate"/> and by MVC when creating endpoints for controller actions.
Metadata\IEndpointParameterMetadataProvider.cs (1)
19/// This method is called by RequestDelegateFactory when creating a <see cref="RequestDelegate"/> and by MVC when creating endpoints for controller actions.
RequestDelegateResult.cs (2)
14public RequestDelegateResult(RequestDelegate requestDelegate, IReadOnlyList<object> metadata) 23public RequestDelegate RequestDelegate { get; }
Routing\Endpoint.cs (2)
25RequestDelegate? requestDelegate, 48public RequestDelegate? RequestDelegate { get; }
src\aspnetcore\src\Shared\Reroute.cs (2)
14internal static RequestDelegate Reroute(IApplicationBuilder app, object routeBuilder, RequestDelegate next)
Microsoft.AspNetCore.Http.Connections (2)
ConnectionEndpointRouteBuilderExtensions.cs (2)
101var negotiateHandler = app.Build(); 113var executehandler = app.Build();
Microsoft.AspNetCore.Http.Extensions (16)
RequestDelegateFactory.cs (13)
35/// Creates <see cref="RequestDelegate"/> implementations from <see cref="Delegate"/> request handlers. 135/// Returns metadata inferred automatically for the <see cref="RequestDelegate"/> created by <see cref="Create(Delegate, RequestDelegateFactoryOptions?, RequestDelegateMetadataResult?)"/>. 154/// Creates a <see cref="RequestDelegate"/> implementation for <paramref name="handler"/>. 165/// Creates a <see cref="RequestDelegate"/> implementation for <paramref name="handler"/>. 192RequestDelegate finalRequestDelegate = targetableRequestDelegate switch 196null => (RequestDelegate)handler, 204/// Creates a <see cref="RequestDelegate"/> implementation for <paramref name="methodInfo"/>. 209/// <returns>The <see cref="RequestDelegate"/>.</returns> 216/// Creates a <see cref="RequestDelegate"/> implementation for <paramref name="methodInfo"/>. 227/// <returns>The <see cref="RequestDelegate"/>.</returns> 239RequestDelegate finalRequestDelegate; 298private static RequestDelegateResult CreateRequestDelegateResult(RequestDelegate finalRequestDelegate, EndpointBuilder endpointBuilder) 373if (filterPipeline is null && factoryContext.Handler is RequestDelegate)
RequestDelegateFactoryOptions.cs (2)
11/// Options for controlling the behavior of the <see cref="RequestDelegate" /> when created using <see cref="RequestDelegateFactory" />. 26/// Controls whether the <see cref="RequestDelegate"/> should throw a <see cref="BadHttpRequestException"/> in addition to
RequestDelegateMetadataResult.cs (1)
15/// Gets endpoint metadata inferred from creating the <see cref="RequestDelegate" />. If a non-null
Microsoft.AspNetCore.HttpLogging (4)
HttpLoggingMiddleware.cs (2)
18private readonly RequestDelegate _next; 27public HttpLoggingMiddleware(RequestDelegate next, IOptionsMonitor<HttpLoggingOptions> options, ILogger<HttpLoggingMiddleware> logger,
W3CLoggingMiddleware.cs (2)
19private readonly RequestDelegate _next; 53public W3CLoggingMiddleware(RequestDelegate next, IOptionsMonitor<W3CLoggerOptions> options, W3CLogger w3cLogger)
Microsoft.AspNetCore.HttpOverrides (8)
CertificateForwardingMiddleware.cs (2)
17private readonly RequestDelegate _next; 28RequestDelegate next,
ForwardedHeadersMiddleware.cs (3)
22private readonly RequestDelegate _next; 43/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 46public ForwardedHeadersMiddleware(RequestDelegate next, ILoggerFactory loggerFactory, IOptions<ForwardedHeadersOptions> options)
HttpMethodOverrideMiddleware.cs (3)
16private readonly RequestDelegate _next; 22/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 24public HttpMethodOverrideMiddleware(RequestDelegate next, IOptions<HttpMethodOverrideOptions> options)
Microsoft.AspNetCore.HttpsPolicy (6)
HstsMiddleware.cs (3)
22private readonly RequestDelegate _next; 33public HstsMiddleware(RequestDelegate next, IOptions<HstsOptions> options, ILoggerFactory loggerFactory) 54public HstsMiddleware(RequestDelegate next, IOptions<HstsOptions> options)
HttpsRedirectionMiddleware.cs (3)
21private readonly RequestDelegate _next; 36public HttpsRedirectionMiddleware(RequestDelegate next, IOptions<HttpsRedirectionOptions> options, IConfiguration config, ILoggerFactory loggerFactory) 66public HttpsRedirectionMiddleware(RequestDelegate next, IOptions<HttpsRedirectionOptions> options, IConfiguration config, ILoggerFactory loggerFactory,
Microsoft.AspNetCore.Identity (10)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (10)
166RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered; 352RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered; 468RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered; 614RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered; 733RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered; 849RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered; 965RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered; 1084RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered; 1186RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered; 1308RequestDelegate targetDelegate = filteredInvocation is null ? RequestHandler : RequestHandlerFiltered;
Microsoft.AspNetCore.Localization (3)
RequestLocalizationMiddleware.cs (3)
22private readonly RequestDelegate _next; 29/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 33public RequestLocalizationMiddleware(RequestDelegate next, IOptions<RequestLocalizationOptions> options, ILoggerFactory loggerFactory)
Microsoft.AspNetCore.Mvc.Core (16)
Filters\MiddlewareFilter.cs (2)
13private readonly RequestDelegate _middlewarePipeline; 15public MiddlewareFilter(RequestDelegate middlewarePipeline)
Filters\MiddlewareFilterAttribute.cs (1)
44var pipeline = middlewarePipelineService.GetPipeline(ConfigurationType);
Filters\MiddlewareFilterBuilder.cs (5)
20private readonly ConcurrentDictionary<Type, Lazy<RequestDelegate>> _pipelinesCache 21= new ConcurrentDictionary<Type, Lazy<RequestDelegate>>(); 31public RequestDelegate GetPipeline(Type configurationType) 37key => new Lazy<RequestDelegate>(() => BuildPipeline(key))); 42private RequestDelegate BuildPipeline(Type middlewarePipelineProviderType)
Routing\ActionEndpointFactory.cs (6)
22private readonly RequestDelegate _requestDelegate; 101var requestDelegate = CreateRequestDelegate(action, route.DataTokens) ?? _requestDelegate; 129var requestDelegate = CreateRequestDelegate(action) ?? _requestDelegate; 500private RequestDelegate? CreateRequestDelegate(ActionDescriptor action, RouteValueDictionary? dataTokens = null) 504var requestDelegate = factory.CreateRequestDelegate(action, dataTokens); 514private static RequestDelegate CreateRequestDelegate()
Routing\ControllerRequestDelegateFactory.cs (1)
66public RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens)
Routing\IRequestDelegateFactory.cs (1)
15RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageRequestDelegateFactory.cs (1)
77public RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens)
Microsoft.AspNetCore.OutputCaching (4)
OutputCacheMiddleware.cs (4)
22private readonly RequestDelegate _next; 34/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 41RequestDelegate next, 59RequestDelegate next,
Microsoft.AspNetCore.RateLimiting (3)
RateLimitingMiddleware.cs (3)
17private readonly RequestDelegate _next; 30/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 35public RateLimitingMiddleware(RequestDelegate next, ILogger<RateLimitingMiddleware> logger, IOptions<RateLimiterOptions> options, IServiceProvider serviceProvider, RateLimitingMetrics metrics)
Microsoft.AspNetCore.RequestDecompression (2)
RequestDecompressionMiddleware.cs (2)
16private readonly RequestDelegate _next; 27RequestDelegate next,
Microsoft.AspNetCore.ResponseCaching (4)
ResponseCachingMiddleware.cs (4)
25private readonly RequestDelegate _next; 35/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 40RequestDelegate next, 58RequestDelegate next,
Microsoft.AspNetCore.ResponseCompression (2)
ResponseCompressionMiddleware.cs (2)
15private readonly RequestDelegate _next; 23public ResponseCompressionMiddleware(RequestDelegate next, IResponseCompressionProvider provider)
Microsoft.AspNetCore.Rewrite (6)
RewriteBuilderExtensions.cs (1)
60var newNext = RerouteHelper.Reroute(app, routeBuilder, next);
RewriteMiddleware.cs (2)
20private readonly RequestDelegate _next; 33RequestDelegate next,
RewriteOptions.cs (1)
28internal RequestDelegate? BranchedNext { get; set; }
src\aspnetcore\src\Shared\Reroute.cs (2)
14internal static RequestDelegate Reroute(IApplicationBuilder app, object routeBuilder, RequestDelegate next)
Microsoft.AspNetCore.Routing (48)
Builder\EndpointRouteBuilderExtensions.cs (11)
68RequestDelegate requestDelegate) 84RequestDelegate requestDelegate) 100RequestDelegate requestDelegate) 116RequestDelegate requestDelegate) 132RequestDelegate requestDelegate) 150RequestDelegate requestDelegate) 168RequestDelegate requestDelegate) 184RequestDelegate requestDelegate) 192RequestDelegate requestDelegate, 205var requestDelegate = (RequestDelegate)handler;
Builder\FallbackEndpointRouteBuilderExtensions.cs (5)
29/// <see cref="MapFallback(IEndpointRouteBuilder, RequestDelegate)"/> is intended to handle cases where URL path of 35/// <see cref="MapFallback(IEndpointRouteBuilder, RequestDelegate)"/> registers an endpoint using the pattern 39public static IEndpointConventionBuilder MapFallback(this IEndpointRouteBuilder endpoints, RequestDelegate requestDelegate) 57/// <see cref="MapFallback(IEndpointRouteBuilder, string, RequestDelegate)"/> is intended to handle cases where no 71RequestDelegate requestDelegate)
EndpointMiddleware.cs (2)
20private readonly RequestDelegate _next; 25RequestDelegate next,
EndpointRoutingMiddleware.cs (2)
30private readonly RequestDelegate _next; 42RequestDelegate next)
RequestDelegateFilterPipelineBuilder.cs (2)
17public static RequestDelegate Create(RequestDelegate requestDelegate, RequestDelegateFactoryOptions options)
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)
RouteEndpoint.cs (1)
25RequestDelegate requestDelegate,
RouteEndpointBuilder.cs (1)
36RequestDelegate? requestDelegate,
RouteEndpointDataSource.cs (5)
35RequestDelegate requestDelegate, 164var factoryCreatedRequestDelegate = isRouteHandler ? null : (RequestDelegate)entry.RouteHandler; 167RequestDelegate redirectRequestDelegate = context => 253var conventionOverriddenRequestDelegate = ReferenceEquals(builder.RequestDelegate, redirectRequestDelegate) ? null : builder.RequestDelegate;
RouteHandler.cs (3)
15private readonly RequestDelegate _requestDelegate; 21public RouteHandler(RequestDelegate requestDelegate) 27public RequestDelegate GetRequestHandler(HttpContext httpContext, RouteData routeData)
RouterMiddleware.cs (2)
16private readonly RequestDelegate _next; 26RequestDelegate next,
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (1)
14private static readonly RequestDelegate _shortCircuitDelegate = (context) => Task.CompletedTask;
Microsoft.AspNetCore.Routing.Abstractions (4)
IRouteHandler.cs (3)
14/// Gets a <see cref="RequestDelegate"/> to handle the request, based on the provided 20/// A <see cref="RequestDelegate"/>, or <c>null</c> if the handler cannot handle this request. 22RequestDelegate GetRequestHandler(HttpContext httpContext, RouteData routeData);
RouteContext.cs (1)
30public RequestDelegate? Handler { get; set; }
Microsoft.AspNetCore.Server.IISIntegration (3)
IISMiddleware.cs (3)
31private readonly RequestDelegate _next; 48public IISMiddleware(RequestDelegate next, 68public IISMiddleware(RequestDelegate next,
Microsoft.AspNetCore.Session (3)
SessionMiddleware.cs (3)
21private readonly RequestDelegate _next; 30/// <param name="next">The <see cref="RequestDelegate"/> representing the next middleware in the pipeline.</param> 36RequestDelegate next,
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
39var original = builder.RequestDelegate!;
Microsoft.AspNetCore.StaticFiles (9)
DefaultFilesMiddleware.cs (2)
21private readonly RequestDelegate _next; 30public DefaultFilesMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, IOptions<DefaultFilesOptions> options)
DirectoryBrowserMiddleware.cs (3)
20private readonly RequestDelegate _next; 30public DirectoryBrowserMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, IOptions<DirectoryBrowserOptions> options) 42public DirectoryBrowserMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, HtmlEncoder encoder, IOptions<DirectoryBrowserOptions> options)
StaticFileContext.cs (1)
304public async Task ServeStaticFile(HttpContext context, RequestDelegate next)
StaticFileMiddleware.cs (2)
20private readonly RequestDelegate _next; 32public StaticFileMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, IOptions<StaticFileOptions> options, ILoggerFactory loggerFactory)
StaticFilesEndpointRouteBuilderExtensions.cs (1)
180private static RequestDelegate CreateRequestDelegate(
Microsoft.AspNetCore.Watch.BrowserRefresh (4)
src\sdk\src\Dotnet.Watch\Web.Middleware\BlazorWasmHotReloadMiddleware.cs (1)
43public BlazorWasmHotReloadMiddleware(RequestDelegate next, ILogger<BlazorWasmHotReloadMiddleware> logger)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserRefreshMiddleware.cs (2)
22private readonly RequestDelegate _next; 27public BrowserRefreshMiddleware(RequestDelegate next, ILogger<BrowserRefreshMiddleware> logger)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserScriptMiddleware.cs (1)
27public BrowserScriptMiddleware(RequestDelegate next, PathString scriptPath, ReadOnlyMemory<byte> scriptBytes, ILogger<BrowserScriptMiddleware> logger)
Microsoft.AspNetCore.WebSockets (2)
WebSocketMiddleware.cs (2)
23private readonly RequestDelegate _next; 35public WebSocketMiddleware(RequestDelegate next, IOptions<WebSocketOptions> options, ILoggerFactory loggerFactory)
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\KestrelWebSocketServer.cs (1)
42public static async ValueTask<KestrelWebSocketServer> StartServerAsync(WebSocketConfig config, RequestDelegate requestHandler, CancellationToken cancellationToken)