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;
        }
Example #2
0
 public RavenCommit(CommitAttempt attempt)
     : this(attempt.ToCommit())
 {
 }