【问题标题】:NotificationHub vs NotificationHubClientNotificationHub 与 NotificationHubClient
【发布时间】:2014-01-30 15:13:49
【问题描述】:

似乎这些是不同命名空间中的两个相似类。不确定要使用哪一个。

这是我从 MSDN 中得到的:

NotificationHubMicrosoft.WindowsAzure.Messaging 命名空间中,出现在 windows store App API 下。所以我只能在 Windows 商店应用程序中使用它们?

NotificationHubClient 位于 Windows Azure 服务总线下的 Microsoft.ServiceBus.Notifications 命名空间中。在任何 .Net 应用程序中使用?

这是正确的吗?我应该坚持使用 NotificationHubClient 吗?有什么理由使用 NotificationHub 而不是 NotificationHubClient?

感谢您的意见。

【问题讨论】:

    标签: azure notifications push-notification


    【解决方案1】:

    “NotificationHub”适用于 Windows 商店应用程序。请参考http://azure.microsoft.com/en-us/documentation/articles/notification-hubs-windows-store-dotnet-get-started/ 样品。

    “NotificationHubClient”用于 .NET 后端与通知中心进行通信。

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2013-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-23
      • 2020-07-08
      • 2018-02-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多