Calling SignalR hub clients from elsewhere in system

后端 未结 5 1011
情书的邮戳
情书的邮戳 2020-12-07 12:06

I\'ve set up a SignalR hub to communicate between the server and client. The hub server side code is stored in a class called Hooking.cs. What I want is to be able to call a

5条回答
  •  自闭症患者
    2020-12-07 12:46

    Hub.GetClients has disappeared in version 0.4.0.

    From the wiki you can now use:

    IConnectionManager connectionManager = AspNetHost.DependencyResolver.Resolve();
    dynamic clients = connectionManager.GetClients();
    

提交回复
热议问题