如何获取 Azure 通知中心注册设备列表
How to get Azure Notification Hub Registered Device list
我正在使用以下代码,但仍然遇到在线挂起问题:-
var allRegistrations = await hub.GetAllRegistrationsAsync(0);
我的代码是:-
NotificationHubClient hub = NotificationHubClient.CreateClientFromConnectionString("Endpoint=XXXXXX.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=XXXXXXXXXXXXX", "My hub name", true);
var allRegistrations = await hub.GetAllRegistrationsAsync(0);
请提供更好的解决方案..
谢谢
我使用通用 Windows 平台应用程序对其进行了测试,它在我的 side.You 上运行正常,可以遵循 document to get start. I use the notification SDK Microsoft.Azure.NotificationHubs
测试结果:
我检查从 Azure 门户注册的活动设备。
从代码调试:
我正在使用以下代码,但仍然遇到在线挂起问题:-
var allRegistrations = await hub.GetAllRegistrationsAsync(0);
我的代码是:-
NotificationHubClient hub = NotificationHubClient.CreateClientFromConnectionString("Endpoint=XXXXXX.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=XXXXXXXXXXXXX", "My hub name", true);
var allRegistrations = await hub.GetAllRegistrationsAsync(0);
请提供更好的解决方案..
谢谢
我使用通用 Windows 平台应用程序对其进行了测试,它在我的 side.You 上运行正常,可以遵循 document to get start. I use the notification SDK Microsoft.Azure.NotificationHubs
测试结果:
我检查从 Azure 门户注册的活动设备。
从代码调试: