예제 #1
0
        // results --------------------------------------------------------------------------------------------
        public async Task <Table> ExecuteGetResultsTable(String jobId)
        {
            TableResultSet retval = null;

            conf.SetServiceEndpoint(mappingPrefix + getResultsTable);
            this.parameterJson.Add("jobID", JsonValue.CreateStringValue(jobId));

            try
            {
                retval = await this.ExecuteWithTableResultReturn();
            }
            finally
            {
                conf.SetServiceEndpoint(null);
                this.parameterJson.Remove("jobID");
            }

            if (!retval.GetSuccess())
            {
                throw new Exception(String.Format("Job failed.  JobId='%s' Message='%s'", jobId, retval.GetRationaleAsString("\n")));
            }

            return(retval.GetTable());
        }
예제 #2
0
        public async Task <Table> ExecuteGetResultsLocationWithSimpleReturn(String jobId)
        {
            TableResultSet retval = await this.ExecuteGetResultsLocation(jobId);

            return(retval.GetTable());
        }