Share via


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
System_CAPS_pubmethod PushClient(ApiServices)

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

Properties

Name Description
System_CAPS_pubproperty 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).

System_CAPS_pubproperty HubClient

Gets or sets the NotificationHubClient to use for sending notifications.

Methods

Name Description
System_CAPS_protmethod CreateNotification(IPushMessage)

Creates a Notification from a IPushMessage.

System_CAPS_protmethod CreateNotificationHubClient(String, String, Boolean)

Creates a NotificationHubClient in a mockable manner.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod SendAsync(IPushMessage)

Sends a notification to the Notification Hub.

System_CAPS_pubmethod SendAsync(IPushMessage, IEnumerable<String>)

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

System_CAPS_pubmethod SendAsync(IPushMessage, String)

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

System_CAPS_protmethod SendNotificationAsync(Notification, IEnumerable<String>)

Makes NotificationHubClient send operation mockable.

System_CAPS_protmethod SendNotificationAsync(Notification, String)

Makes NotificationHubClient send operation mockable.

System_CAPS_pubmethod 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