天道酬勤,学无止境

asp.net-core-signalr

Call SignalR Core Hub method from Controller

Question How can I call SignalR Core Hub method from Controller? I am using ASP.NET Core 2.0 with Microsoft.AspNetCore.SignalR (1.0.0-alpha2-final). I have windows service which communicate with Excel, SolidEdge ... When operation is complete it post request to my controller in ASP.NET Core application. Now I need to inform all clients connected to server with SignalR that external program completed some task. I can not change the way window service works. (Can not connect to SignalR from window service). I found plenty solution for old SignalR (GlobalHost.ConnectionManager.GetHubContext), but

2021-06-01 19:45:17    分类:技术分享    c#   signalr   asp.net-core-2.0   asp.net-core-signalr