Exemplo n.º 1
0
        public void Handle(ProjectionManagementMessage.SlaveProjectionsStarted message)
        {
            CoreProjection projection;

            if (_projections.TryGetValue(message.CoreProjectionCorrelationId, out projection))
            {
                projection.Handle(message);
            }
        }
Exemplo n.º 2
0
        public void Handle(ProjectionManagementMessage.SlaveProjectionsStarted message)
        {
            var command = new SlaveProjectionsStartedResponse {
                CorrelationId    = message.CoreProjectionCorrelationId.ToString("N"),
                SlaveProjections = message.SlaveProjections,
            };

            _commandWriter.PublishResponse("$slave-projections-started", message.WorkerId, command);
        }
Exemplo n.º 3
0
 public void Handle(ProjectionManagementMessage.SlaveProjectionsStarted message)
 {
     _slaveProjections = message.SlaveProjections;
     GoToState(State.LoadStateRequested);
 }