在ASP.NET中推送通知消息 [英] Push notification message in ASP.NET

查看:490
本文介绍了在ASP.NET中推送通知消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何添加以及使用asp.net推送通知消息的代码是什么



i想在我的网页中使用它



我尝试了什么:



如何使用asp添加推送通知消息的代码是什么.net



i想在我的网页中使用它。

解决方案

在ASP.NET中,你可以轻松使用SignalR并为使用Web应用程序版本的客户提供推送消息服务,而不是移动或桌面版本。 SignalR将提供一种非常简单的方法来启用推送消息传递,例如,当服务器中心上有新消息时,聊天通知或消息。 SignalR使用集线器和客户端,通知人们系统中的任何新内容,从而更新推送给客户端。



对于SignalR,请阅读以下内容,

SignalR | ASP.NET网站 [ ^ ]



还有一些其他方法可以在移动或客户端设备中实现这一点,它们需要某种服务(如Azure Notification Hub)才能运行并将通知发送给您的客户端设备。请阅读以下答案,

实时网络功能 [ ^ ]

如何实施推送通知 [ ^ ]

How to add and what is the code of push notification message using asp.net

i want to use it in my webpage

What I have tried:

How to add and what is the code of push notification message using asp.net

i want to use it in my webpage.

解决方案

In ASP.NET, you can easily use SignalR and provide a push messaging service to your clients who are using a web app version, not the mobile or desktop version. The SignalR would provide a very easy way to enable push messaging, such as the chat notifications or messages whenever there is a new message on the server hub. SignalR uses hub and clients, to notify the people of anything new in the system, and thus it pushes that update to the clients.

For SignalR please read the following,
SignalR | The ASP.NET Site[^]

There are a few other ways to implement this in the mobile or client devices, they require some sort of service such as Azure Notification Hub, to be running and that sends the notifications to your client devices. Please read my following answers for that,
Real Time Web functionlity[^]
How to implement push notifications[^]


这篇关于在ASP.NET中推送通知消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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