public static Task <ICommit> CommitNextAsync( this IPersistStreams persistence, ICommit previous, CancellationToken cancellationToken) { var nextAttempt = previous.BuildNextAttempt(); return(persistence.CommitAsync(nextAttempt, cancellationToken)); }
public static ICommit CommitNext(this IPersistStreams persistence, ICommit previous) { var nextAttempt = previous.BuildNextAttempt(); return(persistence.Commit(nextAttempt)); }