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