public async Task FlushAsync(CancellationToken cancellationToken = default) { var records = _records.ToList(); await _publisher.Publish(new SavingWorkflowExecutionLog(records), cancellationToken); await _store.AddManyAsync(_records, cancellationToken); _records.Clear(); }
public async Task FlushAsync(CancellationToken cancellationToken = default) { await _store.AddManyAsync(_records, cancellationToken); _records.Clear(); }