Ejemplo n.º 1
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetOperationDetail operation.
        /// <seealso cref="Amazon.Route53Domains.IAmazonRoute53Domains"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetOperationDetail 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 <GetOperationDetailResponse> GetOperationDetailAsync(GetOperationDetailRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new GetOperationDetailRequestMarshaller();
            var unmarshaller = GetOperationDetailResponseUnmarshaller.Instance;

            return(Invoke <IRequest, GetOperationDetailRequest, GetOperationDetailResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
        internal GetOperationDetailResponse GetOperationDetail(GetOperationDetailRequest request)
        {
            var marshaller   = new GetOperationDetailRequestMarshaller();
            var unmarshaller = GetOperationDetailResponseUnmarshaller.Instance;

            return(Invoke <GetOperationDetailRequest, GetOperationDetailResponse>(request, marshaller, unmarshaller));
        }
Ejemplo n.º 3
0
        internal GetOperationDetailResponse GetOperationDetail(GetOperationDetailRequest request)
        {
            var task = GetOperationDetailAsync(request);

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