CommandOperationBaseTCommandResultExecuteProtocol Method |
Executes the protocol.
Namespace: MongoDB.Driver.Core.OperationsAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.4.1
Syntax protected TCommandResult ExecuteProtocol(
IChannelSource channelSource,
ReadPreference readPreference,
CancellationToken cancellationToken
)
Protected Function ExecuteProtocol (
channelSource As IChannelSource,
readPreference As ReadPreference,
cancellationToken As CancellationToken
) As TCommandResult
member ExecuteProtocol :
channelSource : IChannelSource *
readPreference : ReadPreference *
cancellationToken : CancellationToken -> '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:
TCommandResultA Task whose result is the command result.
See Also