MessagingFactory.OnAcceptMessageSession Method
Executes the accept message session.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
Syntax
'Declaration
Protected Overridable Function OnAcceptMessageSession ( _
receiveMode As ReceiveMode, _
timeout As TimeSpan _
) As MessageSession
'Usage
Dim receiveMode As ReceiveMode
Dim timeout As TimeSpan
Dim returnValue As MessageSession
returnValue = Me.OnAcceptMessageSession(receiveMode, _
timeout)
protected virtual MessageSession OnAcceptMessageSession(
ReceiveMode receiveMode,
TimeSpan timeout
)
protected:
virtual MessageSession^ OnAcceptMessageSession(
ReceiveMode receiveMode,
TimeSpan timeout
)
abstract OnAcceptMessageSession :
receiveMode:ReceiveMode *
timeout:TimeSpan -> MessageSession
override OnAcceptMessageSession :
receiveMode:ReceiveMode *
timeout:TimeSpan -> MessageSession
protected function OnAcceptMessageSession(
receiveMode : ReceiveMode,
timeout : TimeSpan
) : MessageSession
Parameters
- receiveMode
Type: Microsoft.ServiceBus.Messaging.ReceiveMode
The message receive mode.
- timeout
Type: System.TimeSpan
The operation timeout.
Return Value
Type: Microsoft.ServiceBus.Messaging.MessageSession
The MessageSession that has been executed.