コード例 #1
0
        private void SendEndExeMessage(string executedBy, string algoName, bool isProjectExe, string rootPath)
        {
            string dirName = Path.GetFileName(rootPath);
            string link    = string.Empty;

            if (!isProjectExe)
            {
                link = $"Click <a href='{ClientUrl}/results/{dirName}'>here</a> to see results";
            }

            var message = MessagesRepository.AddNewMessage("Execution results", $"Argotihm [{algoName}] finish execution. " + link, executedBy);

            MessageHubContext.Clients.All.Send(message);
        }
コード例 #2
0
        private void FinishProjectExecution(string executedBy, ExecutionInfoEntity firstAlgoExe)
        {
            var message = MessagesRepository.AddNewMessage("Execution results", $"Project [{firstAlgoExe.ProjectName}] finish execution.", executedBy);

            MessageHubContext.Clients.All.Send(message);
        }
コード例 #3
0
        private void SendErrorExeMessage(string executedBy, string algoName, string rootPath)
        {
            var message = MessagesRepository.AddNewMessage("Error execution", $"Error on execution [{algoName}]", executedBy);

            MessageHubContext.Clients.All.Send(message);
        }
コード例 #4
0
        private void SendStartExeMessage(string executedBy, string algoName)
        {
            var message = MessagesRepository.AddNewMessage("Start execution", $"Argotihm [{algoName}] execution is started by {executedBy}", executedBy);

            MessageHubContext.Clients.All.Send(message);
        }