Exemple #1
0
 public void Handle(CoreProjectionProcessingMessage.RestartRequested message)
 {
     if (_stopped)
     {
         return;
     }
     RequestRestart(message.Reason);
 }
Exemple #2
0
        public void Handle(CoreProjectionProcessingMessage.RestartRequested message)
        {
            CoreProjection projection;

            if (_projections.TryGetValue(message.ProjectionId, out projection))
            {
                projection.Handle(message);
            }
        }
Exemple #3
0
 public void Handle(CoreProjectionProcessingMessage.RestartRequested message)
 {
     _logger.Info(
         "Projection '{0}'({1}) restart has been requested due to: '{2}'", _name, _projectionCorrelationId,
         message.Reason);
     //
     EnsureUnsubscribed();
     GoToState(State.Initial);
     Start();
 }
Exemple #4
0
        public void Handle(CoreProjectionProcessingMessage.RestartRequested message)
        {
            _logger.Info(
                "Projection '{0}'({1}) restart has been requested due to: '{2}'", _name, _projectionCorrelationId,
                message.Reason);
            if (_state != State.Running)
            {
                SetFaulted(
                    string.Format(
                        "A concurrency violation was detected, but the projection is not running. Current state is: {0}.  The reason for the restart is: '{1}' ",
                        _state, message.Reason));
                return;
            }

            //
            EnsureUnsubscribed();
            StopSlaveProjections();
            GoToState(State.Initial);
            Start();
        }
Exemple #5
0
 public void Handle(CoreProjectionProcessingMessage.RestartRequested message)
 {
     throw new System.NotImplementedException();
 }
 public void Handle(CoreProjectionProcessingMessage.RestartRequested message)
 {
     _readyHandler.Handle(message);
 }
Exemple #7
0
 public void Handle(CoreProjectionProcessingMessage.RestartRequested message)
 {
     HandledRestartRequestedMessages.Add(message);
 }
Exemple #8
0
 public void Handle(CoreProjectionProcessingMessage.RestartRequested message)
 {
     RequestRestart(message.Reason);
 }