/// <summary> /// Initiates the asynchronous execution of the DescribeTerminationPolicyTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes 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<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeTerminationPolicyTypesRequestMarshaller(); var unmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeTerminationPolicyTypesRequest,DescribeTerminationPolicyTypesResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest describeTerminationPolicyTypesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeTerminationPolicyTypesRequestMarshaller().Marshall(describeTerminationPolicyTypesRequest); var unmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request) { var marshaller = new DescribeTerminationPolicyTypesRequestMarshaller(); var unmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance; return Invoke<DescribeTerminationPolicyTypesRequest,DescribeTerminationPolicyTypesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// <para> Returns a list of all termination policies supported by Auto Scaling. </para> /// </summary> /// /// <param name="describeTerminationPolicyTypesRequest">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes /// service method on AmazonAutoScaling.</param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AmazonAutoScaling.</returns> /// public DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest describeTerminationPolicyTypesRequest) { IAsyncResult asyncResult = invokeDescribeTerminationPolicyTypes(describeTerminationPolicyTypesRequest, null, null, true); return EndDescribeTerminationPolicyTypes(asyncResult); }
/// <summary> /// Initiates the asynchronous execution of the DescribeTerminationPolicyTypes operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.DescribeTerminationPolicyTypes"/> /// </summary> /// /// <param name="describeTerminationPolicyTypesRequest">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes /// operation on AmazonAutoScaling.</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 /// EndDescribeTerminationPolicyTypes operation.</returns> public IAsyncResult BeginDescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest describeTerminationPolicyTypesRequest, AsyncCallback callback, object state) { return invokeDescribeTerminationPolicyTypes(describeTerminationPolicyTypesRequest, callback, state, false); }
/// <summary> /// Initiates the asynchronous execution of the DescribeTerminationPolicyTypes operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.DescribeTerminationPolicyTypes"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes 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<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeTerminationPolicyTypesRequestMarshaller(); var unmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeTerminationPolicyTypesRequest, DescribeTerminationPolicyTypesResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para> Returns a list of all termination policies supported by Auto Scaling. </para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes /// service method on AmazonAutoScaling.</param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AmazonAutoScaling.</returns> public DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request) { var task = DescribeTerminationPolicyTypesAsync(request); try { return task.Result; } catch(AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return null; } }
/// <summary> /// Initiates the asynchronous execution of the DescribeTerminationPolicyTypes operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes operation on AmazonAutoScalingClient.</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 EndDescribeTerminationPolicyTypes /// operation.</returns> public IAsyncResult BeginDescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeTerminationPolicyTypesRequestMarshaller(); var unmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance; return BeginInvoke<DescribeTerminationPolicyTypesRequest>(request, marshaller, unmarshaller, callback, state); }
internal DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request) { var task = DescribeTerminationPolicyTypesAsync(request); try { return task.Result; } catch(AggregateException e) { throw e.InnerException; } }
/// <summary> /// Initiates the asynchronous execution of the DescribeTerminationPolicyTypes operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.DescribeTerminationPolicyTypes"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes 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 async Task<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeTerminationPolicyTypesRequestMarshaller(); var unmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeTerminationPolicyTypesRequest, DescribeTerminationPolicyTypesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }