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

Definition

Executes the accept session receiver action.

protected virtual Microsoft.ServiceBus.Messaging.MessageSession OnAcceptSessionReceiver (string entityName, string sessionId, Microsoft.ServiceBus.Messaging.ReceiveMode receiveMode, TimeSpan timeout);
abstract member OnAcceptSessionReceiver : string * string * Microsoft.ServiceBus.Messaging.ReceiveMode * TimeSpan -> Microsoft.ServiceBus.Messaging.MessageSession
override this.OnAcceptSessionReceiver : string * string * Microsoft.ServiceBus.Messaging.ReceiveMode * TimeSpan -> Microsoft.ServiceBus.Messaging.MessageSession
Parameters
entityName
String String

The name of the entity.

sessionId
String String

The session identifier.

receiveMode
ReceiveMode ReceiveMode

The message receive mode.

timeout
TimeSpan TimeSpan

The wait time before the operation times out.

Returns

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

Applies to