Constructor CoreSessionOptions
CoreSessionOptions(bool, bool, TransactionOptions, bool, BsonTimestamp)
Initializes a new instance of the CoreSessionOptions class.
public CoreSessionOptions(bool isCausallyConsistent = false, bool isImplicit = false, TransactionOptions defaultTransactionOptions = null, bool isSnapshot = false, BsonTimestamp snapshotTime = null)
Parameters
isCausallyConsistentboolif set to
truethis session is causally consistentisImplicitboolif set to
truethis session is an implicit session.defaultTransactionOptionsTransactionOptionsThe default transaction options.
isSnapshotboolif set to
truethis session is a snapshot session.snapshotTimeBsonTimestampThe snapshot time. If this is set, isSnapshot must be true.
CoreSessionOptions(bool, bool, TransactionOptions, bool)
Initializes a new instance of the CoreSessionOptions class.
public CoreSessionOptions(bool isCausallyConsistent, bool isImplicit, TransactionOptions defaultTransactionOptions, bool isSnapshot)
Parameters
isCausallyConsistentboolif set to
truethis session is causally consistentisImplicitboolif set to
truethis session is an implicit session.defaultTransactionOptionsTransactionOptionsThe default transaction options.
isSnapshotboolif set to
truethis session is a snapshot session.