CommandOperationBaseTCommandResultExecuteProtocolAsync Method (IChannelHandle, ICoreSessionHandle, ReadPreference, CancellationToken) |
Executes the protocol.
Namespace:
MongoDB.Driver.Core.Operations
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax protected Task<TCommandResult> ExecuteProtocolAsync(
IChannelHandle channel,
ICoreSessionHandle session,
ReadPreference readPreference,
CancellationToken cancellationToken
)
Protected Function ExecuteProtocolAsync (
channel As IChannelHandle,
session As ICoreSessionHandle,
readPreference As ReadPreference,
cancellationToken As CancellationToken
) As Task(Of TCommandResult)
member ExecuteProtocolAsync :
channel : IChannelHandle *
session : ICoreSessionHandle *
readPreference : ReadPreference *
cancellationToken : CancellationToken -> Task<'TCommandResult>
Parameters
- channel
- Type: MongoDB.Driver.Core.BindingsIChannelHandle
The channel. - session
- Type: MongoDB.Driver.Core.BindingsICoreSessionHandle
The session. - readPreference
- Type: MongoDB.DriverReadPreference
The read preference. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskTCommandResult
A Task whose result is the command result.
See Also