示例#1
0
        /// <summary>
        /// Initiates the asynchronous execution of the TransferDomain operation.
        /// <seealso cref="Amazon.Route53Domains.IAmazonRoute53Domains"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the TransferDomain 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>
        public Task <TransferDomainResponse> TransferDomainAsync(TransferDomainRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new TransferDomainRequestMarshaller();
            var unmarshaller = TransferDomainResponseUnmarshaller.Instance;

            return(Invoke <IRequest, TransferDomainRequest, TransferDomainResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
        internal TransferDomainResponse TransferDomain(TransferDomainRequest request)
        {
            var marshaller   = new TransferDomainRequestMarshaller();
            var unmarshaller = TransferDomainResponseUnmarshaller.Instance;

            return(Invoke <TransferDomainRequest, TransferDomainResponse>(request, marshaller, unmarshaller));
        }
示例#3
0
        internal TransferDomainResponse TransferDomain(TransferDomainRequest request)
        {
            var task = TransferDomainAsync(request);

            try
            {
                return(task.Result);
            }
            catch (AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return(null);
            }
        }