public void Handle(CoreProjectionManagementMessage.GetState message) { CoreProjection projection; if (_projections.TryGetValue(message.ProjectionId, out projection)) { projection.Handle(message); } }
public void Handle(CoreProjectionManagementMessage.GetState message) { var state = _stateCache.TryGetPartitionState(message.Partition); var stateString = state != null ? state.State : null; message.Envelope.ReplyWith( new CoreProjectionManagementMessage.StateReport( message.CorrelationId, message.CorrelationId, message.Partition, state: stateString, position: null)); }
public void Handle(CoreProjectionManagementMessage.GetState message) { var command = new GetStateCommand { Id = message.ProjectionId.ToString("N"), CorrelationId = message.CorrelationId.ToString("N"), Partition = message.Partition }; _commandWriter.PublishResponse("$get-state", message.WorkerId, command); }
public void Handle(CoreProjectionManagementMessage.GetState message) { try { var getStateWorkItem = new GetStateWorkItem( _publisher, message.CorrelationId, message.ProjectionId, this, message.Partition); _processingQueue.EnqueueOutOfOrderTask(getStateWorkItem); ProcessEvent(); } catch (Exception ex) { _publisher.Publish( new CoreProjectionStatusMessage.StateReport( message.CorrelationId, _projectionCorrelationId, message.Partition, state: null, position: null)); _coreProjection.SetFaulted(ex); } }
public void Handle(CoreProjectionManagementMessage.GetState message) { throw new NotImplementedException(); }
public void Handle(CoreProjectionManagementMessage.GetState message) { var projection = _projections[message.CorrelationId]; projection.Handle(message); }