以编程方式创建 Azure 推送通知中心 [英] Creating Azure Push Notification Hub Programmatically

查看:46
本文介绍了以编程方式创建 Azure 推送通知中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 MSDN 文档中它说:

Azure 在 Microsoft.ServiceBus.dll 程序集中支持通知中心作为 Azure SDK 2.1 的一部分.您现在可以通过编程方式创建、更新和删除通知中心,管理您的设备注册,并向所有平台(Windows 应用商店、Windows Phone 8、iOS 和 Android)上的所有移动客户端发送推送通知.

我找不到任何有关以编程方式创建和管理集线器的文档或任何代码示例,我们目前正在引用 Microsoft.Servicebus.dll 的 v2.4.

解决方案

您应该使用 NamespaceManager.CreateNotificationHub 或 NamespaceManager.CreateNotificationHubAsync .

这是NamespaceManager 类文档.>

In the MSDN documentation it says:

Azure supports Notification Hubs as part of the Azure SDK 2.1, in the Microsoft.ServiceBus.dll assembly. You can now create, update and delete notification hubs programmatically, manage your device registrations, and send push notifications to all your mobile clients across all platforms (Windows Store, Windows Phone 8, iOS, and Android).

I cannot find any documentation on creating and managing the hubs programmatically or any code samples, we are currently referencing v2.4 of the Microsoft.Servicebus.dll.

解决方案

You should use NamespaceManager.CreateNotificationHub or NamespaceManager.CreateNotificationHubAsync for.

Here is NamespaceManager class documentation.

这篇关于以编程方式创建 Azure 推送通知中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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