Delen via


QueueClient.OnMessage Method

Definition

Overloads

OnMessage(Action<BrokeredMessage>)

Processes a message in an event-driven message pump.

OnMessage(Action<BrokeredMessage>, OnMessageOptions)

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

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.

Applies to

OnMessage(Action<BrokeredMessage>, OnMessageOptions)

Processes a 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
Public Sub OnMessage (callback As Action(Of BrokeredMessage), onMessageOptions As OnMessageOptions)

Parameters

callback
Action<BrokeredMessage>

The method to invoke when the operation is complete.

onMessageOptions
OnMessageOptions

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

Applies to