Queue​Client.​On​Message Method

Definition

Overloads

On​Message(​Action<​Brokered​Message>)

Processes a message in an event-driven message pump.

On​Message(​Action<​Brokered​Message>, ​On​Message​Options)

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);
Parameters
callback
Action<BrokeredMessage>

The method to invoke when the operation is complete.

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);
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.