/// <summary> /// Initiates the asynchronous execution of the GetChange operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53.GetChange"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetChange 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 <GetChangeResponse> GetChangeAsync(GetChangeRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetChangeRequestMarshaller(); var unmarshaller = GetChangeResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, GetChangeRequest, GetChangeResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
internal GetChangeResponse GetChange(GetChangeRequest request) { var marshaller = new GetChangeRequestMarshaller(); var unmarshaller = GetChangeResponseUnmarshaller.Instance; return(Invoke <GetChangeRequest, GetChangeResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetChange operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetChange 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 <GetChangeResponse> GetChangeAsync(GetChangeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetChangeRequestMarshaller(); var unmarshaller = GetChangeResponseUnmarshaller.Instance; return(InvokeAsync <GetChangeRequest, GetChangeResponse>(request, marshaller, unmarshaller, cancellationToken)); }
IAsyncResult invokeGetChange(GetChangeRequest getChangeRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetChangeRequestMarshaller().Marshall(getChangeRequest); var unmarshaller = GetChangeResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }
/// <summary> /// <para> This action returns the current status of a change batch request. The status is one of the following values:</para> <para>- /// <c>PENDING</c> indicates that the changes in this request have not replicated to all Route 53 DNS servers. This is the initial status of all /// change batch requests.</para> <para>- <c>INSYNC</c> indicates that the changes have replicated to all Amazon Route 53 DNS servers. </para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetChange service method on AmazonRoute53.</param> /// /// <returns>The response from the GetChange service method, as returned by AmazonRoute53.</returns> /// /// <exception cref="T:Amazon.Route53.Model.NoSuchChangeException" /> /// <exception cref="T:Amazon.Route53.Model.InvalidInputException" /> public GetChangeResponse GetChange(GetChangeRequest request) { var task = GetChangeAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
/// <summary> /// Initiates the asynchronous execution of the GetChange operation. /// <seealso cref="Amazon.Route53.AmazonRoute53.GetChange"/> /// </summary> /// /// <param name="getChangeRequest">Container for the necessary parameters to execute the GetChange operation on AmazonRoute53.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetChange /// operation.</returns> public IAsyncResult BeginGetChange(GetChangeRequest getChangeRequest, AsyncCallback callback, object state) { return(invokeGetChange(getChangeRequest, callback, state, false)); }
/// <summary> /// <para> This action returns the current status of a change batch request. The status is one of the following values:</para> <para>- /// <c>PENDING</c> indicates that the changes in this request have not replicated to all Route 53 DNS servers. This is the initial status of all /// change batch requests.</para> <para>- <c>INSYNC</c> indicates that the changes have replicated to all Amazon Route 53 DNS servers. </para> /// </summary> /// /// <param name="getChangeRequest">Container for the necessary parameters to execute the GetChange service method on AmazonRoute53.</param> /// /// <returns>The response from the GetChange service method, as returned by AmazonRoute53.</returns> /// /// <exception cref="InvalidInputException"/> /// <exception cref="NoSuchChangeException"/> public GetChangeResponse GetChange(GetChangeRequest getChangeRequest) { IAsyncResult asyncResult = invokeGetChange(getChangeRequest, null, null, true); return(EndGetChange(asyncResult)); }