MessagingFactory.OnAcceptSessionReceiver Method (String, String, ReceiveMode, TimeSpan)

 

Executes the accept session receiver action.

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

protected virtual MessageSession OnAcceptSessionReceiver(
	string entityName,
	string sessionId,
	ReceiveMode receiveMode,
	TimeSpan timeout
)

Parameters

entityName
Type: System.String

The name of the entity.

sessionId
Type: System.String

The session identifier.

receiveMode
Type: Microsoft.ServiceBus.Messaging.ReceiveMode

The message receive mode.

timeout
Type: System.TimeSpan

The wait time before the operation times out.

Return Value

Type: Microsoft.ServiceBus.Messaging.MessageSession

An IAsyncResult object that references the asynchronous accept session receiver action.

Return to top
Show: