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)
1748c.Handler = null; // Not a match 1785c.Handler = null; // Not a match 1874c.Handler = NullHandler; 2110context.Handler = NullHandler; 2114context.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)
284Assert.Null(context.Handler); 307Assert.Null(context.Handler); 328Assert.NotNull(context.Handler); 356Assert.Null(context.Handler); 418Assert.Null(context.Handler); 445Assert.NotNull(context.Handler); 472Assert.Null(context.Handler); 493Assert.NotNull(context.Handler); 514Assert.Null(context.Handler); 539Assert.NotNull(context.Handler); 561Assert.NotNull(context.Handler); 584Assert.NotNull(context.Handler); 607Assert.NotNull(context.Handler); 693Assert.NotNull(context.Handler); 698Assert.Null(context.Handler); 741Assert.NotNull(context.Handler); 786Assert.Null(context.Handler);