SubscriptionClient.OnMessage SubscriptionClient.OnMessage SubscriptionClient.OnMessage Method

Definition

Overloads

OnMessage(Action<BrokeredMessage>) OnMessage(Action<BrokeredMessage>) OnMessage(Action<BrokeredMessage>)

Processes a message in an event-driven message pump.

OnMessage(Action<BrokeredMessage>, OnMessageOptions) OnMessage(Action<BrokeredMessage>, OnMessageOptions)

message in an event-driven message pump, with the given set of OnMessageOptions options.

OnMessage(Action<BrokeredMessage>) OnMessage(Action<BrokeredMessage>) OnMessage(Action<BrokeredMessage>)

Processes a message in an event-driven message pump.

public void OnMessage (Action<Microsoft.ServiceBus.Messaging.BrokeredMessage> callback);
member this.OnMessage : Action<Microsoft.ServiceBus.Messaging.BrokeredMessage> -> unit
Public Sub OnMessage (callback As Action(Of BrokeredMessage))
Parameters
callback
Action<BrokeredMessage>

The method to invoke when the operation is complete.

OnMessage(Action<BrokeredMessage>, OnMessageOptions) OnMessage(Action<BrokeredMessage>, OnMessageOptions)

message in an event-driven message pump, with the given set of OnMessageOptions options.

public void OnMessage (Action<Microsoft.ServiceBus.Messaging.BrokeredMessage> callback, Microsoft.ServiceBus.Messaging.OnMessageOptions onMessageOptions);
member this.OnMessage : Action<Microsoft.ServiceBus.Messaging.BrokeredMessage> * Microsoft.ServiceBus.Messaging.OnMessageOptions -> unit
Parameters
callback
Action<BrokeredMessage>

The method to invoke when the operation is complete.

onMessageOptions
OnMessageOptions OnMessageOptions OnMessageOptions

Specifies the OnMessageOptions options with which to instantiate the message pump.

Applies to