Method ExecuteProtocolAsync
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
ExecuteProtocolAsync(IChannelHandle, ICoreSessionHandle, ReadPreference, CancellationToken)
Executes the protocol.
protected Task<TCommandResult> ExecuteProtocolAsync(IChannelHandle channel, ICoreSessionHandle session, ReadPreference readPreference, CancellationToken cancellationToken)
Parameters
channel
IChannelHandleThe channel.
session
ICoreSessionHandleThe session.
readPreference
ReadPreferenceThe read preference.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<TCommandResult>
A Task whose result is the command result.
ExecuteProtocolAsync(IChannelSource, ICoreSessionHandle, ReadPreference, CancellationToken)
Executes the protocol.
protected Task<TCommandResult> ExecuteProtocolAsync(IChannelSource channelSource, ICoreSessionHandle session, ReadPreference readPreference, CancellationToken cancellationToken)
Parameters
channelSource
IChannelSourceThe channel source.
session
ICoreSessionHandleThe session.
readPreference
ReadPreferenceThe read preference.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<TCommandResult>
A Task whose result is the command result.