【发布时间】:2018-03-02 03:22:08
【问题描述】:
我正在尝试在 SignalR 上调用集线器之外的客户端方法,下面的链接显示了如何在旧版本中执行此操作,尽管我不确定如何在 SignalR ASP.NET Core 版本中执行此操作。我找到了对 old post 的引用,并使用了对 Microsoft.AspNetCore.SignalR.Infrastructure.IConnectionManager 的引用,尽管这个命名空间似乎不再存在。举个例子就好了?
旧版:How to call client methods and manage groups from outside the Hub class
【问题讨论】:
-
检查解决方案here。它有更详细的答案。
标签: asp.net-core signalr asp.net-core-signalr