MessagingFactory.OnBeginAcceptSessionReceiver Method

Executes the begin accept session receiver action.

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

Syntax

'Declaration
Protected MustOverride Function OnBeginAcceptSessionReceiver ( _
    entityName As String, _
    sessionId As String, _
    partitionId As Integer, _
    receiveMode As ReceiveMode, _
    timeout As TimeSpan, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim entityName As String
Dim sessionId As String
Dim partitionId As Integer
Dim receiveMode As ReceiveMode
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = Me.OnBeginAcceptSessionReceiver(entityName, _
    sessionId, partitionId, receiveMode, _
    timeout, callback, state)
protected abstract IAsyncResult OnBeginAcceptSessionReceiver(
    string entityName,
    string sessionId,
    int partitionId,
    ReceiveMode receiveMode,
    TimeSpan timeout,
    AsyncCallback callback,
    Object state
)
protected:
virtual IAsyncResult^ OnBeginAcceptSessionReceiver(
    String^ entityName, 
    String^ sessionId, 
    int partitionId, 
    ReceiveMode receiveMode, 
    TimeSpan timeout, 
    AsyncCallback^ callback, 
    Object^ state
) abstract
abstract OnBeginAcceptSessionReceiver : 
        entityName:string * 
        sessionId:string * 
        partitionId:int * 
        receiveMode:ReceiveMode * 
        timeout:TimeSpan * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
protected abstract function OnBeginAcceptSessionReceiver(
    entityName : String, 
    sessionId : String, 
    partitionId : int, 
    receiveMode : ReceiveMode, 
    timeout : TimeSpan, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

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

Return Value

Type: System.IAsyncResult
The begin accept session receiver action.

See Also

Reference

MessagingFactory Class

Microsoft.ServiceBus.Messaging Namespace