CommandOperationBaseTCommandResultExecuteProtocolAsync 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
Syntaxprotected Task<TCommandResult> ExecuteProtocolAsync(
	IChannelHandle channel,
	ICoreSessionHandle session,
	ReadPreference readPreference,
	CancellationToken cancellationToken
)
Protected Function ExecuteProtocolAsync ( 
	channel As IChannelHandle,
	session As ICoreSessionHandle,
	readPreference As ReadPreference,
	cancellationToken As CancellationToken
) As Task(Of TCommandResult)
member ExecuteProtocolAsync : 
        channel : IChannelHandle * 
        session : ICoreSessionHandle * 
        readPreference : ReadPreference * 
        cancellationToken : CancellationToken -> Task<'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: 
TaskTCommandResult
            A Task whose result is the command result.
            
See Also