MessageReceiver.OnBeginDefer Method

Executes the begin defer action.

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


Protected MustOverride Function OnBeginDefer ( _
    lockTokens As IEnumerable(Of Guid), _
    timeout As TimeSpan, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
Dim lockTokens As IEnumerable(Of Guid)
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = Me.OnBeginDefer(lockTokens, _
    timeout, callback, state)
protected abstract IAsyncResult OnBeginDefer(
    IEnumerable<Guid> lockTokens,
    TimeSpan timeout,
    AsyncCallback callback,
    Object state
virtual IAsyncResult^ OnBeginDefer(
    IEnumerable<Guid>^ lockTokens, 
    TimeSpan timeout, 
    AsyncCallback^ callback, 
    Object^ state
) abstract
abstract OnBeginDefer : 
        lockTokens:IEnumerable<Guid> * 
        timeout:TimeSpan * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
protected abstract function OnBeginDefer(
    lockTokens : IEnumerable<Guid>, 
    timeout : TimeSpan, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult


  • callback
    Type: System.AsyncCallback
    References the method to invoke when the operation is complete.
  • state
    Type: System.Object
    Information about the receive operation.

Return Value

Type: System.IAsyncResult
The result of the action.

See Also


MessageReceiver Class

Microsoft.ServiceBus.Messaging Namespace