Skip to content

Commit 605a2a5

Browse files
committed
Added constructor
1 parent ed34398 commit 605a2a5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/MongoDB.Driver/Core/Bindings/CoreSessionOptions.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ public CoreSessionOptions(
5252
_snapshotTime = snapshotTime;
5353
}
5454

55+
/// <summary>
56+
/// Initializes a new instance of the <see cref="CoreSessionOptions" /> class.
57+
/// </summary>
58+
/// <param name="isCausallyConsistent">if set to <c>true</c> this session is causally consistent]</param>
59+
/// <param name="isImplicit">if set to <c>true</c> this session is an implicit session.</param>
60+
/// <param name="isSnapshot">if set to <c>true</c> this session is a snapshot session.</param>
61+
/// <param name="defaultTransactionOptions">The default transaction options.</param>
62+
public CoreSessionOptions(
63+
bool isCausallyConsistent,
64+
bool isImplicit,
65+
TransactionOptions defaultTransactionOptions,
66+
bool isSnapshot)
67+
: this(isCausallyConsistent, isImplicit, defaultTransactionOptions, isSnapshot, null)
68+
{
69+
}
70+
5571
// public properties
5672
/// <summary>
5773
/// Gets the default transaction options.

0 commit comments

Comments
 (0)