public void ProcessEvent() { if (!_subscribed) { throw new InvalidOperationException(); } if (_projectionState != PhaseState.Running) { return; } var phaseCheckpointTag = CheckpointTag.FromPhase(_phase, completed: true); var writeResults = WriteResults(phaseCheckpointTag); var writeEofResults = WriteEofEvent(phaseCheckpointTag); _emittedEventWriter.EventsEmitted(writeResults.Concat(writeEofResults).ToArray(), Guid.Empty, null); _checkpointManager.EventProcessed(phaseCheckpointTag, 100.0f); _coreProjection.CompletePhase(); }
public CheckpointTag MakeZeroCheckpointTag() { return(CheckpointTag.FromPhase(_phase, completed: false)); }
public override CheckpointTag MakeZeroCheckpointTag() { return(CheckpointTag.FromPhase(Phase, completed: false)); }