コード例 #1
0
 private Task ReconcileAsync(
     Reference aggregate,
     IEnumerable <DomainEvent> events,
     IAggregateReconciliationProxy proxy,
     CancellationToken?cancellationToken)
 {
     return(aggregate.CoordinateAsync(
                () => PerformCoordinatedReconcileAsync(aggregate, events, proxy, cancellationToken),
                cancellationToken: cancellationToken,
                timeout: timeout));
 }
コード例 #2
0
 protected override Task CoordinateAsync(Func <Task> operation, TimeSpan?timeout = default)
 {
     return(reference.CoordinateAsync(operation, timeout: timeout));
 }