Method ReceiveMessage
- Namespace
- MongoDB.Driver.Core.Connections
- Assembly
- MongoDB.Driver.Core.dll
ReceiveMessage(int, IMessageEncoderSelector, MessageEncoderSettings, CancellationToken)
Receives a message.
ResponseMessage ReceiveMessage(int responseTo, IMessageEncoderSelector encoderSelector, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)
Parameters
responseTo
intThe id of the sent message for which a response is to be received.
encoderSelector
IMessageEncoderSelectorThe encoder selector.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- ResponseMessage
The response message.