예제 #1
0
        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();
        }
예제 #2
0
        public async Task FlushAsync(CancellationToken cancellationToken = default)
        {
            await _store.AddManyAsync(_records, cancellationToken);

            _records.Clear();
        }