자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task SaveAsync(TAggregate aggregate, CancellationToken cancellationToken = default) { if (string.IsNullOrWhiteSpace(aggregate.AggregateId)) { throw new ArgumentException("AggregateId must not be null or empty"); } if (aggregate.UncommittedEvents.Any()) { await _eventStream.AppendAsync(aggregate.AggregateId, aggregate.UncommittedEvents, aggregate.ConcurrencyKey, cancellationToken); } }