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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
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