Constructor TransactionOptions
TransactionOptions(Optional<ReadConcern>, Optional<ReadPreference>, Optional<WriteConcern>, Optional<TimeSpan?>)
Initializes a new instance of the TransactionOptions class.
public TransactionOptions(Optional<ReadConcern> readConcern = default, Optional<ReadPreference> readPreference = default, Optional<WriteConcern> writeConcern = default, Optional<TimeSpan?> maxCommitTime = default)
Parameters
readConcern
Optional<ReadConcern>The read concern.
readPreference
Optional<ReadPreference>The read preference.
writeConcern
Optional<WriteConcern>The write concern.
maxCommitTime
Optional<TimeSpan?>The max commit time.