PushClient Class
The PushClient provides a mechanism for sending notifications to mobile applications through a Notification Hub.
Namespace: Microsoft.WindowsAzure.Mobile.Service.Notifications
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
Inheritance Hierarchy
System.Object
Microsoft.WindowsAzure.Mobile.Service.Notifications.PushClient
Syntax
public class PushClient
public ref class PushClient
type PushClient = class end
Public Class PushClient
Constructors
Name | Description | |
---|---|---|
PushClient(ApiServices) | Initializes a new instance of the PushClient with a given ApiServices instance. |
Properties
Name | Description | |
---|---|---|
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
Name | Description | |
---|---|---|
CreateNotification(IPushMessage) | Creates a Notification from a IPushMessage. |
|
CreateNotificationHubClient(String, String, Boolean) | Creates a NotificationHubClient in a mockable manner. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
SendAsync(IPushMessage) | Sends a notification to the Notification Hub. |
|
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. |
|
SendNotificationAsync(Notification, IEnumerable<String>) | Makes NotificationHubClient send operation mockable. |
|
SendNotificationAsync(Notification, String) | Makes NotificationHubClient send operation mockable. |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.WindowsAzure.Mobile.Service.Notifications Namespace
Return to top