Udostępnij za pośrednictwem


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(HttpConfiguration)

Initializes a new instance of the PushClient with a given

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 NotificationHubClient to use for sending notifications.

Methods

CreateNotification(IPushMessage)

Creates a Notification from a IPushMessage.

CreateNotificationHubClient(String, String, Boolean)

Creates a NotificationHubClient in a mockable manner.

CreateOrUpdateInstallationAsync(Installation)
DeleteInstallationAsync(String)
GetRegistrationsByTagAsync(String, String, Int32)
SendAsync(IPushMessage, IEnumerable<String>)
Obsolete.

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 NotificationHubClient send operation mockable.

SendNotificationAsync(Notification, String)

Makes NotificationHubClient send operation mockable.

Applies to