Beispiel #1
0
 public async Task ManagedFlushAsync(CancellationToken cancellationToken)
 {
     cancellationToken.ThrowIfCancellationRequested();
     using (BeginProcess())
     {
         await(Batcher.ExecuteBatchAsync(cancellationToken)).ConfigureAwait(false);
     }
 }
Beispiel #2
0
 public async Task ManagedFlushAsync(CancellationToken cancellationToken)
 {
     cancellationToken.ThrowIfCancellationRequested();
     using (new SessionIdLoggingContext(SessionId))
     {
         CheckAndUpdateSessionStatus();
         await(Batcher.ExecuteBatchAsync(cancellationToken)).ConfigureAwait(false);
     }
 }