使用WCF / WPF推送通知 [英] Push Notification using WCF/WPF

查看:77
本文介绍了使用WCF / WPF推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi


i目前正在设计一个WPF应用程序,该应用程序需要使用推送通知到客户端设备(例如,如果管理员为操作员分配了新任务,则推送通知将被发送到操作员设备,并且当操作员检查任务完成时,推送通知将被发送到管理员设备)。而且我还希望更改数据库数据以立即反映在客户端。我怎么能这样做?我认为WCF可能是我最好的选择,但我不知道该怎么做?

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?

推荐答案

在wcf中寻找双工通信。此工具允许您重新打开发布/订阅原则。

例如,当您从客户端执行登录请求时,WCF服务将授权此用户并(例如)将其分配给特定组(对于例如:你的''运算符',然后当调用某个触发器时,它将执行指定消息的发布给操作员的组并广播它...等等。



另一个选项可能是SignalR(来自ASP WEB堆栈)。
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).


这篇关于使用WCF / WPF推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆