MessageReceiver.OnMessageAsync Method (Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, Int32)
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), _
maxConcurrentCalls As Integer _
)
'Usage
Dim instance As MessageReceiver
Dim beginCallback As Func(Of BrokeredMessage, AsyncCallback, Object, IAsyncResult)
Dim endCallback As Action(Of IAsyncResult)
Dim maxConcurrentCalls As Integer
instance.OnMessageAsync(beginCallback, _
endCallback, maxConcurrentCalls)
public void OnMessageAsync(
Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult> beginCallback,
Action<IAsyncResult> endCallback,
int maxConcurrentCalls
)
public:
void OnMessageAsync(
Func<BrokeredMessage^, AsyncCallback^, Object^, IAsyncResult^>^ beginCallback,
Action<IAsyncResult^>^ endCallback,
int maxConcurrentCalls
)
member OnMessageAsync :
beginCallback:Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult> *
endCallback:Action<IAsyncResult> *
maxConcurrentCalls:int -> unit
public function OnMessageAsync(
beginCallback : Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult>,
endCallback : Action<IAsyncResult>,
maxConcurrentCalls : int
)
Parameters
- beginCallback
Type: System.Func<BrokeredMessage, AsyncCallback, Object, IAsyncResult>
- endCallback
Type: System.Action<IAsyncResult>
- maxConcurrentCalls
Type: System.Int32