Constructor ReadCommandOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
ReadCommandOperation(DatabaseNamespace, BsonDocument, IBsonSerializer<TCommandResult>, MessageEncoderSettings)
Initializes a new instance of the ReadCommandOperation<TCommandResult> class.
public ReadCommandOperation(DatabaseNamespace databaseNamespace, BsonDocument command, IBsonSerializer<TCommandResult> resultSerializer, MessageEncoderSettings messageEncoderSettings)
Parameters
databaseNamespace
DatabaseNamespaceThe database namespace.
command
BsonDocumentThe command.
resultSerializer
IBsonSerializer<TCommandResult>The result serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.