Beispiel #1
0
 /// <inheritdoc />
 public Task <bool> ExistsAsync(TIdentity id, CancellationToken cancellationToken = default) =>
 _store.AggregateExistsAsync(id, Configuration, cancellationToken);
Beispiel #2
0
 /// <summary>
 /// Determines if the aggregate specified by <paramref name="id"/> exists in <paramref name="store"/>.
 /// </summary>
 /// <param name="store">The <see cref="IEventStore"/></param>
 /// <param name="id">The id of the aggregate.</param>
 /// <param name="cancellationToken">Cancellation token.</param>
 /// <returns><c>true</c> if the aggregate exists; <c>false</c> if it does not exist.</returns>
 public static Task <bool> ExistsAsync(
     IEventStore store,
     TIdentity id,
     CancellationToken cancellationToken = default
     ) =>
 store.AggregateExistsAsync(id, GetConfiguration(), cancellationToken);