Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task CheckUndispatchedAsync(IBucket <T> bucket, Guid streamId) { var hasUndispatched = await bucket.HasUndispatchedCommitsAsync() .ConfigureAwait(false); if (hasUndispatched) { throw new UndispatchedEventsFoundException("Undispatched events found, cannot write new events"); } }