Click or drag to resize

CommandOperationBaseTCommandResultExecuteProtocolAsync Method

Executes the protocol.

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax
protected Task<TCommandResult> ExecuteProtocolAsync(
	IChannelSource channelSource,
	ICoreSessionHandle session,
	ReadPreference readPreference,
	CancellationToken cancellationToken
)

Parameters

channelSource
Type: MongoDB.Driver.Core.BindingsIChannelSource
The channel source.
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