protected override void AllEventsWritten() { if (CommitSource.ReplicationPosition >= LastEventPosition) { Committed(); } else if (!Registered) { CommitSource.NotifyFor(LastEventPosition, Committed, CommitLevel.Replicated); Registered = true; } }
protected virtual void AllEventsWritten() { if (CommitSource.IndexedPosition >= LastEventPosition) { Committed(); } else if (!Registered) { CommitSource.NotifyFor(LastEventPosition, Committed); Registered = true; } }