从web api到UWP app广播消息 [英] Broadcasting message from web api to UWP app

查看:113
本文介绍了从web api到UWP app广播消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



服务器将是一个Web API< g class =" gr_ gr_48 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace"数据-GR-ID =" 48英寸; id =" 48"> in。< / g>网络和客户端是UWP应用程序。数据库中存储了一些消息
以及到期时间和deviceId.Each消息应该广播到设备在时间到期时如何保持从Web API到UWP的持久连接以及我们如何将消息广播到特定设备。请提前预订
所有建议!

解决方案

https://elanderson.net/2018/01/broadcast-from-an-asp-net-web-api-to-a-uwp-client-using-signalr- 2 /


两种技术都可以在ASP.NET论坛的WebAPI和SingnalR的两个论坛中讨论。


  http://forums.asp.net/



The server will be a web API <g class="gr_ gr_48 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="48" id="48">in .</g>Net and client is UWP app.There are some messages stored in the database along with the expiry time and deviceId.Each message should be broadcasted to the device on the expiration of time.How can we keep a persistent connection from web API to UWP and how can we broadcast the message to a particular device.Thanks in advance for all suggestion!

解决方案

https://elanderson.net/2018/01/broadcast-from-an-asp-net-web-api-to-a-uwp-client-using-signalr-2/

Both technologies can be discussed in two forums of WebAPI and SingnalR at ASP.NET forums.

 http://forums.asp.net/


这篇关于从web api到UWP app广播消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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