/// <summary> /// Initiates the asynchronous execution of the DeregisterImage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterImage 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<DeregisterImageResponse> DeregisterImageAsync(DeregisterImageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeregisterImageRequestMarshaller(); var unmarshaller = DeregisterImageResponseUnmarshaller.Instance; return InvokeAsync<DeregisterImageRequest,DeregisterImageResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void DeregisterImageMarshallTest() { var operation = service_model.FindOperation("DeregisterImage"); var request = InstantiateClassGenerator.Execute<DeregisterImageRequest>(); var marshaller = new DeregisterImageRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch /// new instances. /// /// /// <para> /// This command does not delete the AMI. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterImage service method.</param> /// /// <returns>The response from the DeregisterImage service method, as returned by EC2.</returns> public DeregisterImageResponse DeregisterImage(DeregisterImageRequest request) { var marshaller = new DeregisterImageRequestMarshaller(); var unmarshaller = DeregisterImageResponseUnmarshaller.Instance; return Invoke<DeregisterImageRequest,DeregisterImageResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeregisterImage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterImage 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 EndDeregisterImage /// operation.</returns> public IAsyncResult BeginDeregisterImage(DeregisterImageRequest request, AsyncCallback callback, object state) { var marshaller = new DeregisterImageRequestMarshaller(); var unmarshaller = DeregisterImageResponseUnmarshaller.Instance; return BeginInvoke<DeregisterImageRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDeregisterImage(DeregisterImageRequest deregisterImageRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeregisterImageRequestMarshaller().Marshall(deregisterImageRequest); var unmarshaller = DeregisterImageResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances.</para> <para>This command does /// not delete the AMI.</para> /// </summary> /// /// <param name="deregisterImageRequest">Container for the necessary parameters to execute the DeregisterImage 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<DeregisterImageResponse> DeregisterImageAsync(DeregisterImageRequest deregisterImageRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeregisterImageRequestMarshaller(); var unmarshaller = DeregisterImageResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeregisterImageRequest, DeregisterImageResponse>(deregisterImageRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DeregisterImage operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.DeregisterImage"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterImage 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<DeregisterImageResponse> DeregisterImageAsync(DeregisterImageRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeregisterImageRequestMarshaller(); var unmarshaller = DeregisterImageResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeregisterImageRequest, DeregisterImageResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }