public void UpdateCommandStatus(Guid commandUniqueId, EventStatusDTO dto)
        {
            CommandHub hub = new Hubs.CommandHub();

            hub.CommandStatusChangeDirectly(commandUniqueId,
                                            (dto.Status == EventStatusEnum.Finished),
                                            (dto.Status == EventStatusEnum.Error),
                                            dto.ErrorCode,
                                            dto.ErrorMessage
                                            );
        }
        public void UpdateStatus(Guid commandUniqueId, string eventName, EventStatusDTO dto)
        {
            CommandHub hub = new Hubs.CommandHub();

            hub.CommandStatusChange(new CommandStatusChangeObject
            {
                CommandUniqueId = commandUniqueId,
                EventName       = eventName,
                ErrorCode       = dto.ErrorCode,
                ErrorMessage    = dto.ErrorMessage,
                IsFinished      = (dto.Status == EventStatusEnum.Finished),
                IsError         = (dto.Status == EventStatusEnum.Error)
            });
        }
        public void Commands(MonitoredCommand model)
        {
            CommandHub hub = new Hubs.CommandHub();

            hub.MonitorCommand(model);
        }