@@ -58,7 +58,7 @@ public virtual async Task<IList> ListAsync(IQueryExpression queryExpression, Que
58
58
public virtual async Task < IList < T > > ListAsync < T > ( IQueryExpression query , QueryParameters parameters , CancellationToken cancellationToken )
59
59
{
60
60
cancellationToken . ThrowIfCancellationRequested ( ) ;
61
- using ( new SessionIdLoggingContext ( SessionId ) )
61
+ using ( BeginProcess ( ) )
62
62
{
63
63
var results = new List < T > ( ) ;
64
64
await ( ListAsync ( query , parameters , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -69,7 +69,7 @@ public virtual async Task<IList<T>> ListAsync<T>(IQueryExpression query, QueryPa
69
69
public virtual async Task < IList < T > > ListAsync < T > ( CriteriaImpl criteria , CancellationToken cancellationToken )
70
70
{
71
71
cancellationToken . ThrowIfCancellationRequested ( ) ;
72
- using ( new SessionIdLoggingContext ( SessionId ) )
72
+ using ( BeginProcess ( ) )
73
73
{
74
74
var results = new List < T > ( ) ;
75
75
await ( ListAsync ( criteria , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -82,7 +82,7 @@ public virtual async Task<IList<T>> ListAsync<T>(CriteriaImpl criteria, Cancella
82
82
public virtual async Task < IList > ListAsync ( CriteriaImpl criteria , CancellationToken cancellationToken )
83
83
{
84
84
cancellationToken . ThrowIfCancellationRequested ( ) ;
85
- using ( new SessionIdLoggingContext ( SessionId ) )
85
+ using ( BeginProcess ( ) )
86
86
{
87
87
var results = new List < object > ( ) ;
88
88
await ( ListAsync ( criteria , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -113,7 +113,7 @@ public async Task<IList> ListFilterAsync(object collection, IQueryExpression que
113
113
public virtual async Task < IList > ListAsync ( NativeSQLQuerySpecification spec , QueryParameters queryParameters , CancellationToken cancellationToken )
114
114
{
115
115
cancellationToken . ThrowIfCancellationRequested ( ) ;
116
- using ( new SessionIdLoggingContext ( SessionId ) )
116
+ using ( BeginProcess ( ) )
117
117
{
118
118
var results = new List < object > ( ) ;
119
119
await ( ListAsync ( spec , queryParameters , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -124,7 +124,7 @@ public virtual async Task<IList> ListAsync(NativeSQLQuerySpecification spec, Que
124
124
public virtual async Task ListAsync ( NativeSQLQuerySpecification spec , QueryParameters queryParameters , IList results , CancellationToken cancellationToken )
125
125
{
126
126
cancellationToken . ThrowIfCancellationRequested ( ) ;
127
- using ( new SessionIdLoggingContext ( SessionId ) )
127
+ using ( BeginProcess ( ) )
128
128
{
129
129
var query = new SQLCustomQuery (
130
130
spec . SqlQueryReturns ,
@@ -138,7 +138,7 @@ public virtual async Task ListAsync(NativeSQLQuerySpecification spec, QueryParam
138
138
public virtual async Task < IList < T > > ListAsync < T > ( NativeSQLQuerySpecification spec , QueryParameters queryParameters , CancellationToken cancellationToken )
139
139
{
140
140
cancellationToken . ThrowIfCancellationRequested ( ) ;
141
- using ( new SessionIdLoggingContext ( SessionId ) )
141
+ using ( BeginProcess ( ) )
142
142
{
143
143
var results = new List < T > ( ) ;
144
144
await ( ListAsync ( spec , queryParameters , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -151,7 +151,7 @@ public virtual async Task<IList<T>> ListAsync<T>(NativeSQLQuerySpecification spe
151
151
public virtual async Task < IList < T > > ListCustomQueryAsync < T > ( ICustomQuery customQuery , QueryParameters queryParameters , CancellationToken cancellationToken )
152
152
{
153
153
cancellationToken . ThrowIfCancellationRequested ( ) ;
154
- using ( new SessionIdLoggingContext ( SessionId ) )
154
+ using ( BeginProcess ( ) )
155
155
{
156
156
var results = new List < T > ( ) ;
157
157
await ( ListCustomQueryAsync ( customQuery , queryParameters , results , cancellationToken ) ) . ConfigureAwait ( false ) ;
@@ -170,7 +170,7 @@ public virtual async Task<IList<T>> ListCustomQueryAsync<T>(ICustomQuery customQ
170
170
protected async Task AfterOperationAsync ( bool success , CancellationToken cancellationToken )
171
171
{
172
172
cancellationToken . ThrowIfCancellationRequested ( ) ;
173
- using ( new SessionIdLoggingContext ( SessionId ) )
173
+ using ( BeginContext ( ) )
174
174
{
175
175
if ( ! ConnectionManager . IsInActiveTransaction )
176
176
{
0 commit comments