SubscriptionClient.OnBeginAcceptMessageSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes upon calling the BeginAcceptMessageSession operation.
protected abstract IAsyncResult OnBeginAcceptMessageSession (string sessionId, Microsoft.ServiceBus.Messaging.ReceiveMode receiveMode, bool isExclusiveMode, Guid? lockToken, TimeSpan serverWaitTime, TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginAcceptMessageSession : string * Microsoft.ServiceBus.Messaging.ReceiveMode * bool * Nullable<Guid> * TimeSpan * TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected MustOverride Function OnBeginAcceptMessageSession (sessionId As String, receiveMode As ReceiveMode, isExclusiveMode As Boolean, lockToken As Nullable(Of Guid), serverWaitTime As TimeSpan, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- sessionId
- String
The session identifier of the message session.
- receiveMode
- ReceiveMode
The receive mode when processing with the receive messages.
- isExclusiveMode
- Boolean
- serverWaitTime
- TimeSpan
The time span the server waits for processing messages before it times out
- timeout
- TimeSpan
The time span the server waits for processing messages before it times out.
- callback
- AsyncCallback
An AsyncCallback delegate that references the method to invoke when the operation is complete.
- state
- Object
A user-defined object that contains state information about the asynchronous operation.
Returns
An IAsyncResult that references the asynchronous operation to accept a message session.