Click or drag to resize

RetryableWriteCommandOperationBaseCreateCommand Method

Creates the command.

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax
protected abstract BsonDocument CreateCommand(
	ICoreSessionHandle session,
	ConnectionDescription connectionDescription,
	int attempt,
	Nullable<long> transactionNumber
)

Parameters

session
Type: MongoDB.Driver.Core.BindingsICoreSessionHandle
The session.
connectionDescription
Type: MongoDB.Driver.Core.ConnectionsConnectionDescription
The connection description.
attempt
Type: SystemInt32
The attempt.
transactionNumber
Type: SystemNullableInt64
The transaction number.

Return Value

Type: BsonDocument
A command.
See Also