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

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

Public Methods

Method 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 method

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 method

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.
return bool