public void Handle(PartitionMeasuredOutput message) { var command = new PartitionMeasuredResponse { SubscriptionId = message.SubscriptionId.ToString("N"), Partition = message.Partition, Size = message.Size, }; _writer.PublishResponse("$measured", message.MasterProjectionId, command); }
public void Handle(CoreProjectionManagementMessage.CreatePrepared message) { var command = new CreatePreparedCommand { Config = new PersistedProjectionConfig(message.Config), HandlerType = message.HandlerType, Id = message.ProjectionId.ToString("N"), Name = message.Name, Query = message.Query, SourceDefinition = QuerySourcesDefinition.From(message.SourceDefinition), Version = message.Version }; _commandWriter.PublishResponse("$create-prepared", message.WorkerId, command); }