Answered by:
SignalR Client in WPF

Question
-
Hello there , i want know that how i create signalR Server and SignalR Client in WPF Application. Please Help me as soon as possible.
Thanks in advance.
Wednesday, June 1, 2016 10:33 AM
Answers
-
Why would you post a screen shot rather than code?
The harder you make it for people to help the less likely you are to get help.
.
That code doesn't do anything.
You're just casting mainwindow.
Begininvoke is kind of deprecated, you should really use invokeasync and do something with the window one you get it.
Application.Current.Dispatcher.InvokeAsync(new Action(() => { // Put your code here. }));
- Marked as answer by DotNet Wang Tuesday, July 12, 2016 2:07 AM
Thursday, June 2, 2016 4:37 PM
All replies
-
Didn't you try searching before you posted your question?
Top of the hits I see are:
https://damienbod.com/2013/11/20/signalr-a-complete-wpf-client-using-mvvm/
https://code.msdn.microsoft.com/windowsdesktop/Using-SignalR-in-WinForms-f1ec847b
http://www.codeproject.com/Articles/804770/Implementing-SignalR-in-Desktop-Applications
- Proposed as answer by Magnus (MM8)MVP Wednesday, June 1, 2016 8:07 PM
Wednesday, June 1, 2016 1:33 PM -
I already tried all these, but i am getting error of "Cannot convert lambda expression to type 'Delegate' because it is not a delegate". Could anyone please sort this issue.i am using VS 2015.
Thanks in advance.
Om Prakash
Thursday, June 2, 2016 8:08 AM -
You didn't feel mentioning what you'd tried, explaining what the specific issue was and showing us the code might be relevant?
.
Please post the code you're using and indicate which line you get the error from.
You're probably missing a cast in there like
Dispatcher.BeginInvoke((Action)(() =>
or
Dispatcher.BeginInvoke((Delegate)(() =>
Thursday, June 2, 2016 8:20 AM -
This is my actual code Screen shot.Could You Please help me as soon as possible.
Om Prakash
Thursday, June 2, 2016 9:36 AM -
Why would you post a screen shot rather than code?
The harder you make it for people to help the less likely you are to get help.
.
That code doesn't do anything.
You're just casting mainwindow.
Begininvoke is kind of deprecated, you should really use invokeasync and do something with the window one you get it.
Application.Current.Dispatcher.InvokeAsync(new Action(() => { // Put your code here. }));
- Marked as answer by DotNet Wang Tuesday, July 12, 2016 2:07 AM
Thursday, June 2, 2016 4:37 PM