AspNetCore上的SignalR - 如何在运行时添加/修改路由

问题描述 投票:1回答:1

我想在运行时创建新的路由。有没有办法在运行时添加MapHubs

谢谢

signalr-hub asp-net-core-spa-services
1个回答
1
投票

我向SignalR Core开发人员提出了这个问题,目前还不可能:

How to create Hub and new route at run-time using Roslyn scripting?

我们目前没有任何内置支持动态发现集线器。 Hub在启动时被发现并加载到DI容器中。

© www.soinside.com 2019 - 2024. All rights reserved.