35 references to Handler
Microsoft.AspNetCore.Components (9)
Routing\Router.cs (9)
266if (context.Handler != null) 268if (!typeof(IComponent).IsAssignableFrom(context.Handler)) 270throw new InvalidOperationException($"The type {context.Handler.FullName} " + 274activityHandle = RecordDiagnostics(context.Handler.FullName, context.Entry.RoutePattern.RawText); 276Log.NavigatingToComponent(_logger, context.Handler, locationPath, _baseUri); 279context.Handler, 437if (context.Handler is not null && typeof(IComponent).IsAssignableFrom(context.Handler)) 439return context.Handler;
Microsoft.AspNetCore.Components.Tests (26)
Routing\RouteTableFactoryTests.cs (26)
180Assert.NotNull(context.Handler); 194Assert.NotNull(context.Handler); 208Assert.NotNull(context.Handler); 222Assert.NotNull(context.Handler); 236Assert.NotNull(context.Handler); 250Assert.Null(context.Handler); 272Assert.Null(context.Handler); 288Assert.Null(context.Handler); 307Assert.NotNull(context.Handler); 324Assert.NotNull(context.Handler); 345Assert.NotNull(context.Handler); 367Assert.NotNull(context.Handler); 398if (context.Handler == null) 472Assert.Equal(handler, context.Handler); 653Assert.Null(context.Handler); 671if (context.Handler == null) 701if (context.Handler == null) 727if (context.Handler == null) 777Assert.NotNull(context.Handler); 795Assert.NotNull(context.Handler); 920Assert.NotNull(context.Handler); 921Assert.Equal(typeof(TestHandler1), context.Handler); 951Assert.NotNull(context.Handler); 972Assert.NotNull(context.Handler); 973Assert.Equal(typeof(TestHandler2), context.Handler); 1110Assert.Same(typeof(TestHandler1), context.Handler);