private void PersistAndDispatch(CommitAttempt attempt) { this.persistence.Persist(attempt); var commit = attempt.ToCommit(); this.dispatcher.Dispatch(commit); this.commitIdentifiers.Add(commit.CommitId); this.streamHeads[commit.StreamId] = commit; }
public RavenCommit(CommitAttempt attempt) : this(attempt.ToCommit()) { }