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)

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, 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.