private string GetExecutionParamsString(Job job, Automation automation, string mainScriptFilePath, List <string> projectDependencies)
        {
            var executionParams  = GetJobExecutionParams(job, automation, mainScriptFilePath, projectDependencies);
            var paramsJsonString = JsonConvert.SerializeObject(executionParams);

            return(DataFormatter.CompressString(paramsJsonString));
        }
Ejemplo n.º 2
0
        private string GetExecutionParams(string mainScriptFilePath, ServerConnectionSettings settings, List <string> projectDependencies)
        {
            var executionParams = new JobExecutionParams()
            {
                MainFilePath             = mainScriptFilePath,
                ProjectDirectoryPath     = Path.GetDirectoryName(mainScriptFilePath),
                ProjectDependencies      = projectDependencies,
                ServerConnectionSettings = settings
            };
            var paramsJsonString = JsonConvert.SerializeObject(executionParams);

            return(DataFormatter.CompressString(paramsJsonString));
        }
Ejemplo n.º 3
0
        private string GetExecutionParams(Job job, Automation automation, string mainScriptFilePath, List <string> projectDependencies)
        {
            var executionParams = new JobExecutionParams()
            {
                JobId                    = job.Id.ToString(),
                AutomationId             = automation.Id.ToString(),
                AutomationName           = automation.Name,
                MainFilePath             = mainScriptFilePath,
                ProjectDirectoryPath     = Path.GetDirectoryName(mainScriptFilePath),
                JobParameters            = GetJobParameters(job.Id.ToString()),
                ProjectDependencies      = projectDependencies,
                ServerConnectionSettings = _connectionSettingsManager.ConnectionSettings
            };
            var paramsJsonString = JsonConvert.SerializeObject(executionParams);

            return(DataFormatter.CompressString(paramsJsonString));
        }