Ejemplo n.º 1
0
        /// <summary>
        /// <para>Begins an asynchronous send to the check job status route.</para>
        /// </summary>
        /// <param name="asyncJobId">Id of the asynchronous job. This is the value of a
        /// response returned from the method that launched the job.</param>
        /// <param name="callback">The method to be called when the asynchronous send is
        /// completed.</param>
        /// <param name="callbackState">A user provided object that distinguished this send
        /// from other send requests.</param>
        /// <returns>An object that represents the asynchronous send request.</returns>
        public sys.IAsyncResult BeginCheckJobStatus(string asyncJobId,
                                                    sys.AsyncCallback callback,
                                                    object callbackState = null)
        {
            var pollArg = new Async.PollArg(asyncJobId);

            return this.BeginCheckJobStatus(pollArg, callback, callbackState);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// <para>Returns the status of an asynchronous job.</para>
        /// <para>Warning: This endpoint is in beta and is subject to minor but possibly
        /// backwards-incompatible changes.</para>
        /// </summary>
        /// <param name="asyncJobId">Id of the asynchronous job. This is the value of a
        /// response returned from the method that launched the job.</param>
        /// <returns>The task that represents the asynchronous send operation. The TResult
        /// parameter contains the response from the server.</returns>
        /// <exception cref="Dropbox.Api.ApiException{Async.PollError}">Thrown if there is an
        /// error processing the request; This will contain a <see
        /// cref="Async.PollError"/>.</exception>
        public t.Task<JobStatus> CheckJobStatusAsync(string asyncJobId)
        {
            var pollArg = new Async.PollArg(asyncJobId);

            return this.CheckJobStatusAsync(pollArg);
        }