コード例 #1
0
        /// <summary>
        /// Polls status of a file. This is used to know
        /// if Bynder already converted the file, or if it failed.
        /// </summary>
        /// <param name="query">query information</param>
        /// <returns>Task with poll status information</returns>
        private async Task <PollStatus> PollStatusAsync(PollQuery query)
        {
            var request = new ApiRequest <PollStatus>
            {
                Path       = "/api/v4/upload/poll/",
                HTTPMethod = HttpMethod.Get,
                Query      = query
            };

            return(await _requestSender.SendRequestAsync(request).ConfigureAwait(false));
        }
コード例 #2
0
        /// <summary>
        /// Polls status of a file. This is used to know
        /// if Bynder already converted the file, or if it failed.
        /// </summary>
        /// <param name="query">query information</param>
        /// <returns>Task with poll status information</returns>
        private Task <PollStatus> PollStatusAsync(PollQuery query)
        {
            var request = new ApiRequest <PollStatus>
            {
                Path       = "/api/v4/upload/poll/",
                HTTPMethod = HttpMethod.Get,
                Query      = query
            };

            return(_requestSender.SendRequestAsync(request));
        }