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