MessageReceiver.OnMessageAsync Method (Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>)
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
Syntax
'Declaration
Public Sub OnMessageAsync ( _
beginCallback As Func(Of BrokeredMessage, AsyncCallback, Object, IAsyncResult), _
endCallback As Action(Of IAsyncResult) _
)
'Usage
Dim instance As MessageReceiver
Dim beginCallback As Func(Of BrokeredMessage, AsyncCallback, Object, IAsyncResult)
Dim endCallback As Action(Of IAsyncResult)
instance.OnMessageAsync(beginCallback, _
endCallback)
public void OnMessageAsync(
Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult> beginCallback,
Action<IAsyncResult> endCallback
)
public:
void OnMessageAsync(
Func<BrokeredMessage^, AsyncCallback^, Object^, IAsyncResult^>^ beginCallback,
Action<IAsyncResult^>^ endCallback
)
member OnMessageAsync :
beginCallback:Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult> *
endCallback:Action<IAsyncResult> -> unit
public function OnMessageAsync(
beginCallback : Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult>,
endCallback : Action<IAsyncResult>
)
Parameters
- beginCallback
Type: System.Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult>
- endCallback
Type: System.Action<IAsyncResult>