Пример #1
0
        internal AssociateCreatedArtifactResponse AssociateCreatedArtifact(AssociateCreatedArtifactRequest request)
        {
            var marshaller   = new AssociateCreatedArtifactRequestMarshaller();
            var unmarshaller = AssociateCreatedArtifactResponseUnmarshaller.Instance;

            return(Invoke <AssociateCreatedArtifactRequest, AssociateCreatedArtifactResponse>(request, marshaller, unmarshaller));
        }
Пример #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the AssociateCreatedArtifact operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the AssociateCreatedArtifact 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/AWSMigrationHub-2017-05-31/AssociateCreatedArtifact">REST API Reference for AssociateCreatedArtifact Operation</seealso>
        public Task <AssociateCreatedArtifactResponse> AssociateCreatedArtifactAsync(AssociateCreatedArtifactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new AssociateCreatedArtifactRequestMarshaller();
            var unmarshaller = AssociateCreatedArtifactResponseUnmarshaller.Instance;

            return(InvokeAsync <AssociateCreatedArtifactRequest, AssociateCreatedArtifactResponse>(request, marshaller,
                                                                                                   unmarshaller, cancellationToken));
        }
        internal virtual AssociateCreatedArtifactResponse AssociateCreatedArtifact(AssociateCreatedArtifactRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = AssociateCreatedArtifactRequestMarshaller.Instance;
            options.ResponseUnmarshaller = AssociateCreatedArtifactResponseUnmarshaller.Instance;

            return(Invoke <AssociateCreatedArtifactResponse>(request, options));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the AssociateCreatedArtifact operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the AssociateCreatedArtifact 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/AWSMigrationHub-2017-05-31/AssociateCreatedArtifact">REST API Reference for AssociateCreatedArtifact Operation</seealso>
        public virtual Task <AssociateCreatedArtifactResponse> AssociateCreatedArtifactAsync(AssociateCreatedArtifactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = AssociateCreatedArtifactRequestMarshaller.Instance;
            options.ResponseUnmarshaller = AssociateCreatedArtifactResponseUnmarshaller.Instance;

            return(InvokeAsync <AssociateCreatedArtifactResponse>(request, options, cancellationToken));
        }