@@ -37,7 +37,7 @@ public TResult ExecuteReadOperation<TResult>(
3737 IClientSessionHandle session ,
3838 CancellationToken cancellationToken )
3939 {
40- bool isOwnSession = session == null ;
40+ var isOwnSession = session == null ;
4141 session ??= StartImplicitSession ( cancellationToken ) ;
4242
4343 try
@@ -61,7 +61,7 @@ public async Task<TResult> ExecuteReadOperationAsync<TResult>(
6161 IClientSessionHandle session ,
6262 CancellationToken cancellationToken )
6363 {
64- bool isOwnSession = session == null ;
64+ var isOwnSession = session == null ;
6565 session ??= await StartImplicitSessionAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
6666
6767 try
@@ -85,7 +85,7 @@ public TResult ExecuteWriteOperation<TResult>(
8585 IClientSessionHandle session ,
8686 CancellationToken cancellationToken )
8787 {
88- bool isOwnSession = session == null ;
88+ var isOwnSession = session == null ;
8989 session ??= StartImplicitSession ( cancellationToken ) ;
9090
9191 try
@@ -108,7 +108,7 @@ public async Task<TResult> ExecuteWriteOperationAsync<TResult>(
108108 IClientSessionHandle session ,
109109 CancellationToken cancellationToken )
110110 {
111- bool isOwnSession = session == null ;
111+ var isOwnSession = session == null ;
112112 session ??= await StartImplicitSessionAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
113113
114114 try
@@ -151,7 +151,7 @@ private IReadWriteBindingHandle CreateReadWriteBinding(IClientSessionHandle sess
151151 private IClientSessionHandle StartImplicitSession ( )
152152 {
153153 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 ) ) ;
155155 return new ClientSessionHandle ( _client , options , coreSession ) ;
156156 }
157157 }
0 commit comments