Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请,任何人都可以展示一个如何在 Windows 应用程序中实现 signalR 的示例。我需要在服务器端启动时显示一个消息框
连接的开始方法是一个异步方法。您必须调用 Task 类的 ConinueWith 方法。
var connection = new HubConnection("http://localhost:port-no"); IHubProxy hub = connection.CreateProxy("hub-name"); connection.Start().ContinueWith((t) => { MessageBox.Show("Your-message"); });