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
)
Protected Function ExecuteProtocol (
channel As IChannelHandle,
session As ICoreSessionHandle,
readPreference As ReadPreference,
cancellationToken As CancellationToken
) As TCommandResult
member ExecuteProtocol :
channel : IChannelHandle *
session : ICoreSessionHandle *
readPreference : ReadPreference *
cancellationToken : CancellationToken -> 'TCommandResult
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