Method ExecuteProtocol
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
ExecuteProtocol(IChannelHandle, ICoreSessionHandle, ReadPreference, CancellationToken)
Executes the protocol.
protected TCommandResult ExecuteProtocol(IChannelHandle channel, ICoreSessionHandle session, ReadPreference readPreference, CancellationToken cancellationToken)
Parameters
channelIChannelHandleThe channel.
sessionICoreSessionHandleThe session.
readPreferenceReadPreferenceThe read preference.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- TCommandResult
A Task whose result is the command result.
ExecuteProtocol(IChannelSource, ICoreSessionHandle, ReadPreference, CancellationToken)
Executes the protocol.
protected TCommandResult ExecuteProtocol(IChannelSource channelSource, ICoreSessionHandle session, ReadPreference readPreference, CancellationToken cancellationToken)
Parameters
channelSourceIChannelSourceThe channel source.
sessionICoreSessionHandleThe session.
readPreferenceReadPreferenceThe read preference.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- TCommandResult
A Task whose result is the command result.