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); }
private void FinishProjectExecution(string executedBy, ExecutionInfoEntity firstAlgoExe) { var message = MessagesRepository.AddNewMessage("Execution results", $"Project [{firstAlgoExe.ProjectName}] finish execution.", executedBy); MessageHubContext.Clients.All.Send(message); }
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); }
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); }