Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public CheckpointTag MakeZeroCheckpointTag()
 {
     return(CheckpointTag.FromPhase(_phase, completed: false));
 }
Exemplo n.º 3
0
 public override CheckpointTag MakeZeroCheckpointTag()
 {
     return(CheckpointTag.FromPhase(Phase, completed: false));
 }