Beispiel #1
0
 private static async Task DispatchLastCommitAsync(IBucket <T> bucket, Guid?filterByStreamId, long atBucketRevision)
 {
     try
     {
         await bucket.DispatchUndispatchedAsync(filterByStreamId, atBucketRevision)
         .ConfigureAwait(false);
     }
     catch (Exception ex)
     {
         throw new UndispatchedEventsFoundException("Undispatched events found, cannot dispatch them and write new events", ex);
     }
 }