1
votes

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.

1
Nevermind I think I have found it, it's in the Microsoft.ServiceBus.NamespaceManager. Strange it was so hard to find the samples for this.user351711

1 Answers

2
votes

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

Here is NamespaceManager class documentation.