Click here to Skip to main content
11,705,212 members (59,341 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF WPF C#4.0 .NET4 WinForm , +
Hi

i am currently designing a WPF application that requires the use of push notification to the client device(For example if a operator is assigned a new task by the administrator, a push notification will be sent to the operator device and when the operator check the task as finished a push notification will be sent to the Administrators device). And also i want changes to the database data to reflect immediately on the client side. How can i go about this ? I figure WCF might be my best option but i don't know what to do?
Posted 23-Dec-12 11:05am

1 solution

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

Solution 1

Look for duplex communications inside wcf. This facility allows you to reopen publication/subscription principle.
For example when you perform login request from a client side, WCF service will authorize this user and (for example) assign it to a specific group (for example: your's operator), then when some trigger is invoked, it will performs publication of specified message to a operator's group and broadcast it ... etc.

Another option could be SignalR (from ASP WEB stack).
  Permalink  
v3
Comments
Kaito Hack at 11-Feb-14 3:34am
   
I have a very similar case here, is there a sample or detailed article to illustrate the solution?
Oleksandr Kulchytskyi at 11-Feb-14 3:44am
   
There are a lot of samples here:
http://www.codeproject.com/Articles/34460/WCF-Duplex-Reentrant-Services
http://www.codeproject.com/Articles/17704/WCF-Duplex-Operations-and-UI-Threads
http://www.codeproject.com/Articles/566543/WCF-Message-Exchange-Patterns-MEPs

the articles above related to the WCF duplex communication, what is concersn signalR read about it on the Microsoft site.
With regards, Oleksandr.

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 535
1 OriginalGriff 244
2 ppolymorphe 116
3 CPallini 82
4 Inimicos 60
0 OriginalGriff 8,988
1 Sergey Alexandrovich Kryukov 8,272
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,606


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2015
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