PushClient.SendAsync Method

Definition

Overloads

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.

SendAsync(IPushMessage)

Sends a notification to the Notification Hub.

public virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendAsync (Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage message);
abstract member SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage) As Task(Of NotificationOutcome)

Parameters

message
IPushMessage

The notification payload is one of WindowsPushMessage, ApplePushMessage, or TemplatePushMessage.

Returns

Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>

A Task<TResult> representing the notification send operation.

Applies to

SendAsync(IPushMessage, IEnumerable<String>)

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

public virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendAsync (Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage message, System.Collections.Generic.IEnumerable<string> tags);
abstract member SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * seq<string> -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * seq<string> -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)

Parameters

message
IPushMessage

The notification payload is one of WindowsPushMessage, ApplePushMessage, or TemplatePushMessage.

tags
IEnumerable<String>

The set of tags to use for this notification.

Returns

Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>

A Task<TResult> representing the notification send operation.

Applies to

SendAsync(IPushMessage, String)

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

public virtual System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome> SendAsync (Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage message, string tagExpression);
abstract member SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
override this.SendAsync : Microsoft.WindowsAzure.Mobile.Service.Notifications.IPushMessage * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage, tagExpression As String) As Task(Of NotificationOutcome)

Parameters

message
IPushMessage

The notification payload is one of WindowsPushMessage, ApplePushMessage, or TemplatePushMessage.

tagExpression
String

A tag expression representing the combination of tags to use for this notification.

Returns

Task<Microsoft.ServiceBus.Notifications.NotificationOutcome>

A Task<TResult> representing the notification send operation.

Applies to