Esempio n. 1
0
        public void Handle(CoreProjectionManagementMessage.Dispose message)
        {
            var command = new DisposeCommand {
                Id = message.ProjectionId.ToString("N")
            };

            _commandWriter.PublishResponse("$dispose", message.WorkerId, command);
        }
Esempio n. 2
0
        public void Handle(CoreProjectionManagementMessage.Dispose message)
        {
            CoreProjection projection;

            if (_projections.TryGetValue(message.ProjectionId, out projection))
            {
                _projections.Remove(message.ProjectionId);
                projection.Dispose();
            }
        }