AzureML.ManagementSDK.GetBESJobStatus C# (CSharp) Method

GetBESJobStatus() public method

public GetBESJobStatus ( string submitJobRequestUrl, string apiKey, string jobId, string &results ) : string
submitJobRequestUrl string
apiKey string
jobId string
results string
return string
        public string GetBESJobStatus(string submitJobRequestUrl, string apiKey, string jobId, out string results)
        {
            Util.AuthorizationToken = apiKey;
            string getJobStatusApiLocation = submitJobRequestUrl.Replace("jobs?api-version=2.0", "jobs/" + jobId + "?api-version=2.0");            
            HttpResult hr = Util.HttpGet(getJobStatusApiLocation).Result;
            if (!hr.IsSuccess)
                throw new Exception(hr.Payload);
            dynamic parsed = jss.Deserialize<object>(hr.Payload);
            string jobStatus = parsed["StatusCode"];
            results = hr.Payload;            
            return jobStatus;
        }
        #endregion