CommandOperationBaseTCommandResultExecuteProtocolAsync Method |
Executes the protocol.
Namespace: MongoDB.Driver.Core.OperationsAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.0.1
Syntax protected Task<TCommandResult> ExecuteProtocolAsync(
IChannelSource channelSource,
ReadPreference readPreference,
CancellationToken cancellationToken
)
Protected Function ExecuteProtocolAsync (
channelSource As IChannelSource,
readPreference As ReadPreference,
cancellationToken As CancellationToken
) As Task(Of TCommandResult)
member ExecuteProtocolAsync :
channelSource : IChannelSource *
readPreference : ReadPreference *
cancellationToken : CancellationToken -> Task<'TCommandResult>
Parameters
- channelSource
- Type: MongoDB.Driver.Core.BindingsIChannelSource
The channel source. - readPreference
- Type: MongoDB.DriverReadPreference
The read preference. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskTCommandResultA Task whose result is the command result.
See Also