/// <summary> /// Initiates the asynchronous execution of the UpdateDomainContact operation. /// <seealso cref="Amazon.Route53Domains.IAmazonRoute53Domains"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateDomainContact 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 <UpdateDomainContactResponse> UpdateDomainContactAsync(UpdateDomainContactRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateDomainContactRequestMarshaller(); var unmarshaller = UpdateDomainContactResponseUnmarshaller.Instance; return(Invoke <IRequest, UpdateDomainContactRequest, UpdateDomainContactResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
internal UpdateDomainContactResponse UpdateDomainContact(UpdateDomainContactRequest request) { var marshaller = new UpdateDomainContactRequestMarshaller(); var unmarshaller = UpdateDomainContactResponseUnmarshaller.Instance; return(Invoke <UpdateDomainContactRequest, UpdateDomainContactResponse>(request, marshaller, unmarshaller)); }
internal UpdateDomainContactResponse UpdateDomainContact(UpdateDomainContactRequest request) { var task = UpdateDomainContactAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }