Please, could anybody show an example how to implement signalR in windows app. i need to show a message box when server side is started thnx a lot
Asked
Active
Viewed 150 times
1 Answers
0
Start method of the connection is an asynchronous method. You have to call ConinueWith method of the Task class.
var connection = new HubConnection("http://localhost:port-no");
IHubProxy hub = connection.CreateProxy("hub-name");
connection.Start().ContinueWith((t) => { MessageBox.Show("Your-message"); });

S. Ravi Kiran
- 4,053
- 3
- 21
- 26