Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF
Hi,
 
I want to create one client-server based application using WPF.
 
Now Which one is better SignalR or WCF Services for communication between client and server.
I have require to send data to all connected client from server side as well as one client can do some operation which should notify to all other connected clients, which are connected to same server.
 
Can anyone explain me which one is better in this type of scenario?
 

Thanks in Advance,
Posted 7-Mar-13 20:03pm
tgeek0012.4K

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi!!!
 
What is WCF????
-------------------------------------------------------------------------------------------
Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application. An endpoint can be a client of a service that requests data from a service endpoint. The messages can be as simple as a single character or word sent as XML, or as complex as a stream of binary data. A few sample scenarios include:
 
A secure service to process business transactions.
 
A service that supplies current data to others, such as a traffic report or other monitoring service.
 
A chat service that allows two people to communicate or exchange data in real time.
 
A dashboard application that polls one or more services for data and presents it in a logical presentation.
 
Exposing a workflow implemented using Windows Workflow Foundation as a WCF service.
 
A Silverlight application to poll a service for the latest data feeds.
 
While creating such applications was possible prior to the existence of WCF, WCF makes the development of endpoints easier than ever. In summary, WCF is designed to offer a manageable approach to creating Web services and Web service clients.
Features of WCF
 
WCF includes the following set of features. For more information, see WCF Feature Details.
Reference:http://msdn.microsoft.com/en-us/library/ms731082.aspx[^]
--------------------------------------------------------------------------------------------
 
What is SignalR?
--------------------------------------------------------------------------------------------
 
ASP.NET SignalR is a new library for ASP.NET developers that simplifies the process of adding real-time web functionality to your applications. Real-time web functionality is the ability to have server-side code push content to connected clients instantly as it becomes available.
 

 
Reference: http://www.asp.net/signalr[^]
  Permalink  
Comments
TechnoGeek001 at 8-Mar-13 2:11am
   
Hi Shubham,
 
Thanks for quick response.
 
Yes I go through both the links, but still not getting exact difference or which one is better in my case to use where we require Client (WPF) - Server (Window Service runs 24x7) architecture.
 
Can you please give you comment on this.
 
Thanks in advance.
Shubham Choudhary at 8-Mar-13 2:38am
   
hi!!! geeks001
 
Truly i say i don't know more about SignalR...
buit I see for SignalR are chat programs...'
and
https://github.com/SignalR/SignalR/issues/713
 
https://github.com/SignalR/SignalR/wiki/SignalR-JS-Client-Hubs
check this link
TechnoGeek001 at 8-Mar-13 4:00am
   
Hi Shubham,
 
By using WCF and SingalR we can create the chat application. But my main question still open which one is better.
 
But anyway thank for taking time and try to help me.
 
Thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100