@@ -37,7 +37,7 @@ public TResult ExecuteReadOperation<TResult>(
37
37
IClientSessionHandle session ,
38
38
CancellationToken cancellationToken )
39
39
{
40
- bool isOwnSession = session == null ;
40
+ var isOwnSession = session == null ;
41
41
session ??= StartImplicitSession ( cancellationToken ) ;
42
42
43
43
try
@@ -61,7 +61,7 @@ public async Task<TResult> ExecuteReadOperationAsync<TResult>(
61
61
IClientSessionHandle session ,
62
62
CancellationToken cancellationToken )
63
63
{
64
- bool isOwnSession = session == null ;
64
+ var isOwnSession = session == null ;
65
65
session ??= await StartImplicitSessionAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
66
66
67
67
try
@@ -85,7 +85,7 @@ public TResult ExecuteWriteOperation<TResult>(
85
85
IClientSessionHandle session ,
86
86
CancellationToken cancellationToken )
87
87
{
88
- bool isOwnSession = session == null ;
88
+ var isOwnSession = session == null ;
89
89
session ??= StartImplicitSession ( cancellationToken ) ;
90
90
91
91
try
@@ -108,7 +108,7 @@ public async Task<TResult> ExecuteWriteOperationAsync<TResult>(
108
108
IClientSessionHandle session ,
109
109
CancellationToken cancellationToken )
110
110
{
111
- bool isOwnSession = session == null ;
111
+ var isOwnSession = session == null ;
112
112
session ??= await StartImplicitSessionAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
113
113
114
114
try
@@ -151,7 +151,7 @@ private IReadWriteBindingHandle CreateReadWriteBinding(IClientSessionHandle sess
151
151
private IClientSessionHandle StartImplicitSession ( )
152
152
{
153
153
var options = new ClientSessionOptions { CausalConsistency = false , Snapshot = false } ;
154
- ICoreSessionHandle coreSession = _client . GetClusterInternal ( ) . StartSession ( options . ToCore ( isImplicit : true ) ) ;
154
+ var coreSession = _client . GetClusterInternal ( ) . StartSession ( options . ToCore ( isImplicit : true ) ) ;
155
155
return new ClientSessionHandle ( _client , options , coreSession ) ;
156
156
}
157
157
}
0 commit comments