Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Notifications Hub. what second args of GetRegistrationsByTagAsync(string tag, int top) stands for?

The documentation says about NotificationHubClient.GetRegistrationsByTagAsync(string tag, int top) in Azure Push Notifications as below,

top (Int32) : The location where to get the registrations.

But I have no idea what top or location stands for.
An example I found use just 100 but no reason to use it.

like image 421
Youngjae Avatar asked Sep 05 '14 07:09

Youngjae


People also ask

What is tags in Azure notification hub?

Tag expressions enable you to target specific sets of devices, or more specifically registrations, when sending a push notification through Notification Hubs.

Which of the following security claims sends messages to the notification hub?

Similar to other entities, Notification Hub operations are allowed for three security claims: Listen, Send, and Manage. Notification Hubs accepts SAS tokens generated with shared keys configured directly on the hub. It is not possible to send a notification to more than one namespace.

What is the SLA for notification hubs with a basic or standard performance tier?

What is the Notification Hubs SLA? For Basic and Standard Notification Hubs tiers, properly configured applications can send push notifications or perform registration management operations at least 99.9 percent of the time.

Which Azure Service send push notifications to any platform from any back end?

Send push notifications to any platform from any back endAzure Notification Hubs provides a highly scalable, cross-platform push notification infrastructure that enables you to either broadcast push notifications to millions of users at once, or tailor notifications to individual users.


1 Answers

Basically it means get at most top records.

So if you have 1000 registrations with tag 'A' then NotificationHubClient.GetRegistrationsByTagAsync("A", 42) will return 42 records.

However, top cannot be more then 100! NotificationHubClient.GetRegistrationsByTagAsync("A", 142) will only return 100 records.

like image 156
efimovandr Avatar answered Oct 22 '22 12:10

efimovandr