SALES: 1-800-867-1380

MessageReceiver::OnMessageAsync Method

Asynchronously processes a message in an event-driven message pump.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public:
void OnMessageAsync(
	Func<BrokeredMessage^, Task^>^ callback, 
	OnMessageOptions^ options
)

Parameters

callback
Type: System::Func<BrokeredMessage, Task>
The method to invoke when the operation is complete.
options
Type: Microsoft.ServiceBus.Messaging::OnMessageOptions
Specifies the OnMessageOptionsoptions with which to instantiate the message pump.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft