public CommandLineAction(IActionProcessor parameters) : base(parameters) { executableFile = parameters.GetParameter(ActionParamNamesCore.PathToFile, string.Empty).Value; commandArgs = parameters.GetParameters <string>(ActionParamNamesCore.DataValue, string.Empty).Select(p => p.Value); onOutput = parameters.GetParameter <ActionProcessCommandLineDelegate>(ActionParamNamesCore.OutputDataReceivedDelegate, null).Value; onError = parameters.GetParameter <ActionProcessCommandLineDelegate>(ActionParamNamesCore.ErrorDataReceivedDelegate, null).Value; }
public RunPythonAction(IActionProcessor parameters) : base(parameters) { logger.InfoEx("Initiating \"Launch Python script\" action."); pytonParameters = parameters.GetParameters <string>(ActionParamNamesCore.DataValue, string.Empty).Select(p => p.Value); if (pytonParameters.Count() == 1 && string.IsNullOrEmpty(pytonParameters.First())) { pytonParameters = new string[0]; } this.returnResult.Result = string.Empty; }