Exemple #1
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetDomainDetail operation.
        /// <seealso cref="Amazon.Route53Domains.IAmazonRoute53Domains"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetDomainDetail 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 <GetDomainDetailResponse> GetDomainDetailAsync(GetDomainDetailRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new GetDomainDetailRequestMarshaller();
            var unmarshaller = GetDomainDetailResponseUnmarshaller.Instance;

            return(Invoke <IRequest, GetDomainDetailRequest, GetDomainDetailResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
        internal GetDomainDetailResponse GetDomainDetail(GetDomainDetailRequest request)
        {
            var marshaller   = new GetDomainDetailRequestMarshaller();
            var unmarshaller = GetDomainDetailResponseUnmarshaller.Instance;

            return(Invoke <GetDomainDetailRequest, GetDomainDetailResponse>(request, marshaller, unmarshaller));
        }
Exemple #3
0
        internal GetDomainDetailResponse GetDomainDetail(GetDomainDetailRequest request)
        {
            var task = GetDomainDetailAsync(request);

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