Share via


PushClient Class

Definition

The PushClient provides a mechanism for sending notifications to mobile applications through a Notification Hub.

public class PushClient
type PushClient = class
Public Class PushClient
Inheritance
PushClient

Constructors

PushClient(ApiServices)

Initializes a new instance of the PushClient with a given ApiServices instance.

Properties

EnableTestSend

When test send is enabled, all notifications only reach up to 10 devices for each send call and the SendNotificationAsync method return a detailed list of the outcomes for all those notification deliveries (for example, authentication errors, throttling errors, and so on).

HubClient

Gets or sets the Microsoft.ServiceBus.Notifications.NotificationHubClient to use for sending notifications.

Methods

CreateNotification(IPushMessage)

Creates a Microsoft.ServiceBus.Notifications.Notification from a IPushMessage.

CreateNotificationHubClient(String, String, Boolean)

Creates a Microsoft.ServiceBus.Notifications.NotificationHubClient in a mockable manner.

SendAsync(IPushMessage, IEnumerable<String>)

Sends a notification to the Notification Hub with a given tag expression.

SendAsync(IPushMessage, String)

Sends a notification to the Notification Hub with a given tag expression.

SendAsync(IPushMessage)

Sends a notification to the Notification Hub.

SendNotificationAsync(Notification, IEnumerable<String>)

Makes Microsoft.ServiceBus.Notifications.NotificationHubClient send operation mockable.

SendNotificationAsync(Notification, String)

Makes Microsoft.ServiceBus.Notifications.NotificationHubClient send operation mockable.

Applies to