26 writes to Handler
Microsoft.AspNetCore.Mvc.Core (2)
Routing\MvcAttributeRouteHandler.cs (1)
69context.Handler = (c) =>
Routing\MvcRouteHandler.cs (1)
57context.Handler = (c) =>
Microsoft.AspNetCore.Mvc.Core.Test (3)
Routing\AttributeRouteTest.cs (2)
64routeContext.Handler = (c) => Task.CompletedTask; 780.Callback<RouteContext>(c => c.Handler = NullHandler)
Routing\UrlHelperTest.cs (1)
147context.Handler = (c) => Task.FromResult(0);
Microsoft.AspNetCore.Routing (1)
RouteHandler.cs (1)
42context.Handler = _requestDelegate;
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
103routeContext.Handler = (_) => Task.CompletedTask;
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
105routeContext.Handler = (_) => Task.CompletedTask;
Microsoft.AspNetCore.Routing.Tests (18)
Matching\RouteMatcherBuilder.cs (1)
103routeContext.Handler = (_) => Task.CompletedTask;
Matching\TreeRouterMatcherBuilder.cs (1)
105routeContext.Handler = (_) => Task.CompletedTask;
RouteCollectionTest.cs (2)
555.Callback<RouteContext>((c) => c.Handler = accept ? NullHandler : null) 685.Callback<RouteContext>((c) => c.Handler = accept ? NullHandler : null)
RouterMiddlewareTest.cs (1)
142context.Handler = _isHandled ? (RequestDelegate)((c) => Task.CompletedTask) : null;
RouteTest.cs (8)
72ctx.Handler = NullHandler; 126ctx.Handler = NullHandler; 180ctx.Handler = NullHandler; 222ctx.Handler = NullHandler; 264ctx.Handler = NullHandler; 304ctx.Handler = NullHandler; 356ctx.Handler = NullHandler; 1842.Callback<RouteContext>((c) => c.Handler = handleRequest ? NullHandler : null)
Tree\TreeRouterTest.cs (5)
1749c.Handler = null; // Not a match 1786c.Handler = null; // Not a match 1875c.Handler = NullHandler; 2111context.Handler = NullHandler; 2115context.Handler = MatchingDelegate(context) ? NullHandler : null;
56 references to Handler
Microsoft.AspNetCore.Mvc.Core.Test (2)
Routing\AttributeRouteTest.cs (2)
90Assert.NotNull(context.Handler); 107Assert.Null(context.Handler);
Microsoft.AspNetCore.Routing (6)
RouteCollection.cs (2)
81if (context.Handler != null) 88if (context.Handler == null)
RouterMiddleware.cs (2)
48if (context.Handler == null) 64await context.Handler(context.HttpContext);
Tree\TreeRouter.cs (2)
214if (context.Handler != null) 221if (context.Handler == null)
Microsoft.AspNetCore.Routing.Abstractions (1)
RouteContext.cs (1)
27/// Gets or sets the handler for the request. An <see cref="IRouter"/> should set <see cref="Handler"/>
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
src\Http\Routing\test\UnitTests\Matching\RouteMatcher.cs (2)
25if (routeContext.Handler != null) 28await routeContext.Handler(httpContext);
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcher.cs (2)
26if (routeContext.Handler != null) 29await routeContext.Handler(httpContext);
Microsoft.AspNetCore.Routing.Tests (43)
Matching\RouteMatcher.cs (2)
25if (routeContext.Handler != null) 28await routeContext.Handler(httpContext);
Matching\TreeRouterMatcher.cs (2)
26if (routeContext.Handler != null) 29await routeContext.Handler(httpContext);
RequestDelegateRouteBuilderExtensionsTest.cs (2)
62Assert.Same(NullHandler, context.Handler); 120Assert.Null(context.Handler);
RouteCollectionTest.cs (3)
180Assert.NotNull(context.Handler); 206Assert.NotNull(context.Handler); 231Assert.Null(context.Handler);
RouteTest.cs (17)
199Assert.NotNull(context.Handler); 241Assert.NotNull(context.Handler); 283Assert.NotNull(context.Handler); 333Assert.NotNull(context.Handler); 375Assert.Null(context.Handler); 390Assert.NotNull(context.Handler); 407Assert.NotNull(context.Handler); 422Assert.NotNull(context.Handler); 441Assert.NotNull(context.Handler); 462Assert.Null(context.Handler); 476Assert.Null(context.Handler); 495Assert.NotNull(context.Handler); 525Assert.NotNull(context.Handler); 543Assert.NotNull(context.Handler); 560Assert.NotNull(context.Handler); 578Assert.Null(context.Handler); 1744Assert.Null(context.Handler);
Tree\TreeRouterTest.cs (17)
285Assert.Null(context.Handler); 308Assert.Null(context.Handler); 329Assert.NotNull(context.Handler); 357Assert.Null(context.Handler); 419Assert.Null(context.Handler); 446Assert.NotNull(context.Handler); 473Assert.Null(context.Handler); 494Assert.NotNull(context.Handler); 515Assert.Null(context.Handler); 540Assert.NotNull(context.Handler); 562Assert.NotNull(context.Handler); 585Assert.NotNull(context.Handler); 608Assert.NotNull(context.Handler); 694Assert.NotNull(context.Handler); 699Assert.Null(context.Handler); 742Assert.NotNull(context.Handler); 787Assert.Null(context.Handler);