/// <summary> /// Initiates the asynchronous execution of the RebootInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RebootInstances 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<RebootInstancesResponse> RebootInstancesAsync(RebootInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RebootInstancesRequestMarshaller(); var unmarshaller = RebootInstancesResponseUnmarshaller.Instance; return InvokeAsync<RebootInstancesRequest,RebootInstancesResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void RebootInstancesMarshallTest() { var operation = service_model.FindOperation("RebootInstances"); var request = InstantiateClassGenerator.Execute<RebootInstancesRequest>(); var marshaller = new RebootInstancesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Requests a reboot of one or more instances. This operation is asynchronous; it only /// queues a request to reboot the specified instances. The operation succeeds if the /// instances are valid and belong to you. Requests to reboot terminated instances are /// ignored. /// /// /// <para> /// If a Linux/Unix instance does not cleanly shut down within four minutes, Amazon EC2 /// performs a hard reboot. /// </para> /// /// <para> /// For more information about troubleshooting, see <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html">Getting /// Console Output and Rebooting Instances</a> in the <i>Amazon Elastic Compute Cloud /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RebootInstances service method.</param> /// /// <returns>The response from the RebootInstances service method, as returned by EC2.</returns> public RebootInstancesResponse RebootInstances(RebootInstancesRequest request) { var marshaller = new RebootInstancesRequestMarshaller(); var unmarshaller = RebootInstancesResponseUnmarshaller.Instance; return Invoke<RebootInstancesRequest,RebootInstancesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the RebootInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RebootInstances operation on AmazonEC2Client.</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 EndRebootInstances /// operation.</returns> public IAsyncResult BeginRebootInstances(RebootInstancesRequest request, AsyncCallback callback, object state) { var marshaller = new RebootInstancesRequestMarshaller(); var unmarshaller = RebootInstancesResponseUnmarshaller.Instance; return BeginInvoke<RebootInstancesRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeRebootInstances(RebootInstancesRequest rebootInstancesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new RebootInstancesRequestMarshaller().Marshall(rebootInstancesRequest); var unmarshaller = RebootInstancesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified /// instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.</para> /// <para>If a Linux/Unix instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.</para> /// </summary> /// /// <param name="rebootInstancesRequest">Container for the necessary parameters to execute the RebootInstances service method on /// AmazonEC2.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<RebootInstancesResponse> RebootInstancesAsync(RebootInstancesRequest rebootInstancesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RebootInstancesRequestMarshaller(); var unmarshaller = RebootInstancesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, RebootInstancesRequest, RebootInstancesResponse>(rebootInstancesRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the RebootInstances operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.RebootInstances"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RebootInstances 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<RebootInstancesResponse> RebootInstancesAsync(RebootInstancesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RebootInstancesRequestMarshaller(); var unmarshaller = RebootInstancesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, RebootInstancesRequest, RebootInstancesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }