コード例 #1
0
        /// <summary>
        /// A blocking create job request/response cycle.
        /// </summary>
        /// <param name="input">The URL of the input file.</param>
        /// <param name="outputs">The output definition collection.</param>
        /// <param name="downloadConnections">The number of download connections to use when fetching the input file.</param>
        /// <param name="region">The region to perform the job in.</param>
        /// <param name="test">A value indicating whether to use test mode.</param>
        /// <param name="callback">The call response.</param>
        public void CreateJob(string input, IEnumerable <Output> outputs, int?downloadConnections, string region, bool?test, Action <CreateJobResponse> callback)
        {
            CreateJobRequest request = new CreateJobRequest(this)
            {
                DownloadConnections = downloadConnections,
                Input  = input,
                Region = region,
                Test   = test
            };

            request.WithOutputs(outputs).GetResponseAsync(callback);
        }
コード例 #2
0
        /// <summary>
        /// A blocking create job request/response cycle.
        /// </summary>
        /// <param name="input">The URL of the input file.</param>
        /// <param name="outputs">The output definition collection.</param>
        /// <param name="downloadConnections">The number of download connections to use when fetching the input file.</param>
        /// <param name="region">The region to perform the job in.</param>
        /// <param name="test">A value indicating whether to use test mode.</param>
        /// <returns>The call response.</returns>
        public CreateJobResponse CreateJob(string input, IEnumerable <Output> outputs, int?downloadConnections, string region, bool?test)
        {
            CreateJobRequest request = new CreateJobRequest(this)
            {
                DownloadConnections = downloadConnections,
                Input  = input,
                Region = region,
                Test   = test
            };

            return(request.WithOutputs(outputs).GetResponse());
        }