Click or drag to resize

CommandOperationBaseTCommandResultExecuteProtocol Method (IChannelHandle, ICoreSessionHandle, ReadPreference, CancellationToken)

Executes the protocol.

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
protected TCommandResult ExecuteProtocol(
	IChannelHandle channel,
	ICoreSessionHandle session,
	ReadPreference readPreference,
	CancellationToken cancellationToken
)

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: TCommandResult
A Task whose result is the command result.
See Also