/// <summary>Submit a job to the service</summary> /// <param name="input">Structure describing the input parameters</param> /// <param name="content">Structure containing the input data</param> /// <returns>A string containing the job identifier</returns> public string RunApp(string email, string title, InputParameters input) { PrintDebugMessage("RunApp", "Begin", 1); PrintDebugMessage("RunApp", "email: " + email, 2); PrintDebugMessage("RunApp", "title: " + title, 2); PrintDebugMessage("RunApp", "input:\n" + ObjectValueToString(input), 2); string jobId = null; this.ServiceProxyConnect(); // Ensure we have a service proxy // Submit the job jobId = SrvProxy.run(email, title, input); PrintDebugMessage("RunApp", "jobId: " + jobId, 2); PrintDebugMessage("RunApp", "End", 1); return jobId; }
/// <summary>Submit a job to the service</summary> /// <param name="input">Structure describing the input parameters</param> /// <param name="content">Structure containing the input data</param> /// <returns>A string containing the job identifier</returns> public string RunApp(string email, string title, InputParameters input) { PrintDebugMessage("RunApp", "Begin", 1); if (email == null || email.Length < 1) { throw new ClientException("E-mail address is required to submit a job."); } PrintDebugMessage("RunApp", "email: " + email, 2); PrintDebugMessage("RunApp", "title: " + title, 2); PrintDebugMessage("RunApp", "input: " + input, 2); PrintDebugMessage("RunApp", "input:\n" + ObjectValueToString(input), 2); string jobId = null; this.ServiceProxyConnect(); // Ensure we have a service proxy // Submit the job jobId = SrvProxy.run(email, title, input); PrintDebugMessage("RunApp", "jobId: " + jobId, 2); PrintDebugMessage("RunApp", "End", 1); return(jobId); }