Skip to content

Commit 96f9a13

Browse files
committed
Map hub manually
1 parent de5750d commit 96f9a13

File tree

1 file changed

+2
-1
lines changed
  • src/Components/test/testassets/TestServer

1 file changed

+2
-1
lines changed

src/Components/test/testassets/TestServer/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
4949
// we're not relying on any extra magic inside UseServerSideBlazor, since it's
5050
// important that people can set up these bits of middleware manually (e.g., to
5151
// swap in UseAzureSignalR instead of UseSignalR).
52-
subdirApp.UseRouting(routes => routes.MapComponentHub<Index>(selector: "root"));
52+
subdirApp.UseRouting(routes =>
53+
routes.MapHub<ComponentHub>(ComponentHub.DefaultPath).AddComponent<Index>(selector: "root"));
5354

5455
subdirApp.MapWhen(
5556
ctx => ctx.Features.Get<IEndpointFeature>()?.Endpoint == null,

0 commit comments

Comments
 (0)