Esempio n. 1
0
 private static Task ReadFeed(Container container, IEventFeedHandler eventHandler, int pageSizeHint, string?continuationToken, JsonSerializerOptions options, CancellationToken cancallationToken)
 {
     return(CosmosEventStore <TContainerFactory, TSnapshotReader> .ReadFeedJson(container, new JsonEventFeed.JsonEventFeedHandlerOverJsonSerializer(eventHandler, options), pageSizeHint, continuationToken, options, cancallationToken));
 }
Esempio n. 2
0
 /// <summary>
 /// Reads an event feed.
 /// </summary>
 /// <param name="eventHandler">The event reader capable of decoding and applying the event payloads for this aggregate root.</param>
 /// <param name="pageSizeHint">A hint as to the number of items you get in a page of results.</param>
 /// <param name="continuationToken">The (optional) continuation token to resume the feed from a particular point.</param>
 /// <param name="cancellationToken">The cancellation token to terminate reading the feed.</param>
 /// <returns>A <see cref="Task{TResult}"/> which completes when the feed terminates.</returns>
 public Task ReadFeed(IEventFeedHandler eventHandler, int pageSizeHint, string?continuationToken, CancellationToken cancellationToken)
 {
     return(CosmosEventStore <TContainerFactory, TSnapshotReader> .ReadFeed(this.ContainerFactory.GetContainer(), eventHandler, pageSizeHint, continuationToken, this.Options, cancellationToken));
 }