Exemple #1
0
 /// <inheritdoc />
 public IAsyncEnumerable <TIdentity> IdsAsync(CancellationToken cancellationToken = default) =>
 _store.AggregateIdsAsync(Configuration, cancellationToken);
Exemple #2
0
 /// <summary>
 /// Resolves the ids of all aggregates of this type, stored in <paramref name="store"/>.
 /// </summary>
 /// <param name="store">Event store to query.</param>
 /// <param name="cancellationToken">Cancellation token</param>
 /// <returns>The ids of all aggregates of this type.</returns>
 public static IAsyncEnumerable <TIdentity> IdsAsync(
     IEventStore store,
     CancellationToken cancellationToken = default
     ) =>
 store.AggregateIdsAsync(GetConfiguration(), cancellationToken);