コード例 #1
0
ファイル: Zencoder.cs プロジェクト: swiggin1/zencoder-cs
        /// <summary>
        /// A non blocking job progress request/response cycle.
        /// </summary>
        /// <param name="jobId">The ID of the job to get progress for.</param>
        /// <param name="callback">The call response.</param>
        public void JobProgress(int jobId, Action<JobProgressResponse> callback)
        {
            JobProgressRequest request = new JobProgressRequest(this)
            {
                JobId = jobId
            };

            request.GetResponseAsync(callback);
        }
コード例 #2
0
ファイル: Zencoder.cs プロジェクト: dfaithen/zencoder-cs
        /// <summary>
        /// A blocking job progress request/response cycle.
        /// </summary>
        /// <param name="outputId">The ID of the output (NOT the job ID) to get progress for.</param>
        /// <returns>The call response.</returns>
        public JobProgressResponse JobProgress(int outputId)
        {
            JobProgressRequest request = new JobProgressRequest(this)
            {
                OutputId = outputId
            };

            return request.GetResponse();
        }
コード例 #3
0
ファイル: Zencoder.cs プロジェクト: swiggin1/zencoder-cs
        /// <summary>
        /// A blocking job progress request/response cycle.
        /// </summary>
        /// <param name="jobId">The ID of the job to get progress for.</param>
        /// <returns>The call response.</returns>
        public JobProgressResponse JobProgress(int jobId)
        {
            JobProgressRequest request = new JobProgressRequest(this)
            {
                JobId = jobId
            };

            return request.GetResponse();
        }
コード例 #4
0
 public Task <JobProgress> Any(JobProgressRequest request)
 {
     return(jobProgressProvider.GetJobProgressAsync(request.JobId));
 }