@@ -58,7 +58,7 @@ public virtual async Task<IList> ListAsync(IQueryExpression queryExpression, Que
5858 public virtual async Task < IList < T > > ListAsync < T > ( IQueryExpression query , QueryParameters parameters , CancellationToken cancellationToken )
5959 {
6060 cancellationToken . ThrowIfCancellationRequested ( ) ;
61- using ( new SessionIdLoggingContext ( SessionId ) )
61+ using ( BeginProcess ( ) )
6262 {
6363 var results = new List < T > ( ) ;
6464 await ( ListAsync ( query , parameters , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -69,7 +69,7 @@ public virtual async Task<IList<T>> ListAsync<T>(IQueryExpression query, QueryPa
6969 public virtual async Task < IList < T > > ListAsync < T > ( CriteriaImpl criteria , CancellationToken cancellationToken )
7070 {
7171 cancellationToken . ThrowIfCancellationRequested ( ) ;
72- using ( new SessionIdLoggingContext ( SessionId ) )
72+ using ( BeginProcess ( ) )
7373 {
7474 var results = new List < T > ( ) ;
7575 await ( ListAsync ( criteria , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -82,7 +82,7 @@ public virtual async Task<IList<T>> ListAsync<T>(CriteriaImpl criteria, Cancella
8282 public virtual async Task < IList > ListAsync ( CriteriaImpl criteria , CancellationToken cancellationToken )
8383 {
8484 cancellationToken . ThrowIfCancellationRequested ( ) ;
85- using ( new SessionIdLoggingContext ( SessionId ) )
85+ using ( BeginProcess ( ) )
8686 {
8787 var results = new List < object > ( ) ;
8888 await ( ListAsync ( criteria , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -113,7 +113,7 @@ public async Task<IList> ListFilterAsync(object collection, IQueryExpression que
113113 public virtual async Task < IList > ListAsync ( NativeSQLQuerySpecification spec , QueryParameters queryParameters , CancellationToken cancellationToken )
114114 {
115115 cancellationToken . ThrowIfCancellationRequested ( ) ;
116- using ( new SessionIdLoggingContext ( SessionId ) )
116+ using ( BeginProcess ( ) )
117117 {
118118 var results = new List < object > ( ) ;
119119 await ( ListAsync ( spec , queryParameters , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -124,7 +124,7 @@ public virtual async Task<IList> ListAsync(NativeSQLQuerySpecification spec, Que
124124 public virtual async Task ListAsync ( NativeSQLQuerySpecification spec , QueryParameters queryParameters , IList results , CancellationToken cancellationToken )
125125 {
126126 cancellationToken . ThrowIfCancellationRequested ( ) ;
127- using ( new SessionIdLoggingContext ( SessionId ) )
127+ using ( BeginProcess ( ) )
128128 {
129129 var query = new SQLCustomQuery (
130130 spec . SqlQueryReturns ,
@@ -138,7 +138,7 @@ public virtual async Task ListAsync(NativeSQLQuerySpecification spec, QueryParam
138138 public virtual async Task < IList < T > > ListAsync < T > ( NativeSQLQuerySpecification spec , QueryParameters queryParameters , CancellationToken cancellationToken )
139139 {
140140 cancellationToken . ThrowIfCancellationRequested ( ) ;
141- using ( new SessionIdLoggingContext ( SessionId ) )
141+ using ( BeginProcess ( ) )
142142 {
143143 var results = new List < T > ( ) ;
144144 await ( ListAsync ( spec , queryParameters , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -151,7 +151,7 @@ public virtual async Task<IList<T>> ListAsync<T>(NativeSQLQuerySpecification spe
151151 public virtual async Task < IList < T > > ListCustomQueryAsync < T > ( ICustomQuery customQuery , QueryParameters queryParameters , CancellationToken cancellationToken )
152152 {
153153 cancellationToken . ThrowIfCancellationRequested ( ) ;
154- using ( new SessionIdLoggingContext ( SessionId ) )
154+ using ( BeginProcess ( ) )
155155 {
156156 var results = new List < T > ( ) ;
157157 await ( ListCustomQueryAsync ( customQuery , queryParameters , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -170,7 +170,7 @@ public virtual async Task<IList<T>> ListCustomQueryAsync<T>(ICustomQuery customQ
170170 protected async Task AfterOperationAsync ( bool success , CancellationToken cancellationToken )
171171 {
172172 cancellationToken . ThrowIfCancellationRequested ( ) ;
173- using ( new SessionIdLoggingContext ( SessionId ) )
173+ using ( BeginContext ( ) )
174174 {
175175 if ( ! ConnectionManager . IsInActiveTransaction )
176176 {
0 commit comments