C# Class MongoDB.Driver.Core.Misc.CommandsThatWriteAcceptWriteConcernFeature

Represents the commands that write accept write concern concern feature.
Inheritance: MongoDB.Driver.Core.Misc.Feature
Afficher le fichier Open project: craiggwilson/mongo-csharp-driver

Méthodes publiques

Méthode Description
CommandsThatWriteAcceptWriteConcernFeature ( string name, SemanticVersion firstSupportedVersion )

Initializes a new instance of the CommandsThatWriteAcceptWriteConcernFeature class.

ShouldSendWriteConcern ( SemanticVersion serverVersion, WriteConcern value ) : bool

Returns true if the write concern value supplied is one that should be sent to the server and the server version supports the commands that write accept write concern feature.

Method Details

CommandsThatWriteAcceptWriteConcernFeature() public méthode

Initializes a new instance of the CommandsThatWriteAcceptWriteConcernFeature class.
public CommandsThatWriteAcceptWriteConcernFeature ( string name, SemanticVersion firstSupportedVersion )
name string The name of the feature.
firstSupportedVersion SemanticVersion The first server version that supports the feature.

ShouldSendWriteConcern() public méthode

Returns true if the write concern value supplied is one that should be sent to the server and the server version supports the commands that write accept write concern feature.
public ShouldSendWriteConcern ( SemanticVersion serverVersion, WriteConcern value ) : bool
serverVersion SemanticVersion The server version.
value WriteConcern The write concern value.
Résultat bool