예제 #1
0
        internal InitiateLayerUploadResponse InitiateLayerUpload(InitiateLayerUploadRequest request)
        {
            var marshaller   = new InitiateLayerUploadRequestMarshaller();
            var unmarshaller = InitiateLayerUploadResponseUnmarshaller.Instance;

            return(Invoke <InitiateLayerUploadRequest, InitiateLayerUploadResponse>(request, marshaller, unmarshaller));
        }
예제 #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the InitiateLayerUpload operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the InitiateLayerUpload operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/InitiateLayerUpload">REST API Reference for InitiateLayerUpload Operation</seealso>
        public Task <InitiateLayerUploadResponse> InitiateLayerUploadAsync(InitiateLayerUploadRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new InitiateLayerUploadRequestMarshaller();
            var unmarshaller = InitiateLayerUploadResponseUnmarshaller.Instance;

            return(InvokeAsync <InitiateLayerUploadRequest, InitiateLayerUploadResponse>(request, marshaller,
                                                                                         unmarshaller, cancellationToken));
        }