Esempio n. 1
0
        public async Task <JobStatus> GetJobStatusAsync(JobId id)
        {
            var request = new JobPollRequest()
            {
                JobId = id.Id
            };
            var result = await Post <JobPollResponse>("/poll", request);

            return(result.JobStatus);
        }
Esempio n. 2
0
        public async Task <JobFetchResponse> FetchResultAsync(JobId id)
        {
            var request = new JobFetchRequest()
            {
                JobId = id.Id
            };
            var result = await Post <JobFetchResponse>("/fetch", request);

            return(result);
        }
Esempio n. 3
0
 public Task <JobFetchResponse> TryFetchResultAsync(JobId id)
 {
     throw new NotImplementedException();
 }