您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

MessagingFactory.OnBeginAcceptSessionReceiver(String, String, ReceiveMode, TimeSpan, AsyncCallback, Object) MessagingFactory.OnBeginAcceptSessionReceiver(String, String, ReceiveMode, TimeSpan, AsyncCallback, Object) Method

Definition

Executes the begin accept session receiver action.

protected abstract IAsyncResult OnBeginAcceptSessionReceiver (string entityName, string sessionId, Microsoft.ServiceBus.Messaging.ReceiveMode receiveMode, TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginAcceptSessionReceiver : string * string * Microsoft.ServiceBus.Messaging.ReceiveMode * TimeSpan * AsyncCallback * obj -> IAsyncResult

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.

callback
AsyncCallback AsyncCallback

An AsyncCallback delegate that references the method to invoke when the operation is complete.

state
Object Object

A user-defined object that contains information about the receive operation.

Returns

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

Applies to