/// <summary> /// Initiates the asynchronous execution of the DeleteNetworkInterface operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNetworkInterface 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<DeleteNetworkInterfaceResponse> DeleteNetworkInterfaceAsync(DeleteNetworkInterfaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteNetworkInterfaceRequestMarshaller(); var unmarshaller = DeleteNetworkInterfaceResponseUnmarshaller.Instance; return InvokeAsync<DeleteNetworkInterfaceRequest,DeleteNetworkInterfaceResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void DeleteNetworkInterfaceMarshallTest() { var operation = service_model.FindOperation("DeleteNetworkInterface"); var request = InstantiateClassGenerator.Execute<DeleteNetworkInterfaceRequest>(); var marshaller = new DeleteNetworkInterfaceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Deletes the specified network interface. You must detach the network interface before /// you can delete it. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNetworkInterface service method.</param> /// /// <returns>The response from the DeleteNetworkInterface service method, as returned by EC2.</returns> public DeleteNetworkInterfaceResponse DeleteNetworkInterface(DeleteNetworkInterfaceRequest request) { var marshaller = new DeleteNetworkInterfaceRequestMarshaller(); var unmarshaller = DeleteNetworkInterfaceResponseUnmarshaller.Instance; return Invoke<DeleteNetworkInterfaceRequest,DeleteNetworkInterfaceResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteNetworkInterface operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNetworkInterface 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 EndDeleteNetworkInterface /// operation.</returns> public IAsyncResult BeginDeleteNetworkInterface(DeleteNetworkInterfaceRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteNetworkInterfaceRequestMarshaller(); var unmarshaller = DeleteNetworkInterfaceResponseUnmarshaller.Instance; return BeginInvoke<DeleteNetworkInterfaceRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDeleteNetworkInterface(DeleteNetworkInterfaceRequest deleteNetworkInterfaceRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteNetworkInterfaceRequestMarshaller().Marshall(deleteNetworkInterfaceRequest); var unmarshaller = DeleteNetworkInterfaceResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Deletes the specified network interface. You must detach the network interface before you can delete it.</para> /// </summary> /// /// <param name="deleteNetworkInterfaceRequest">Container for the necessary parameters to execute the DeleteNetworkInterface 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<DeleteNetworkInterfaceResponse> DeleteNetworkInterfaceAsync(DeleteNetworkInterfaceRequest deleteNetworkInterfaceRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteNetworkInterfaceRequestMarshaller(); var unmarshaller = DeleteNetworkInterfaceResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteNetworkInterfaceRequest, DeleteNetworkInterfaceResponse>(deleteNetworkInterfaceRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DeleteNetworkInterface operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.DeleteNetworkInterface"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNetworkInterface 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<DeleteNetworkInterfaceResponse> DeleteNetworkInterfaceAsync(DeleteNetworkInterfaceRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteNetworkInterfaceRequestMarshaller(); var unmarshaller = DeleteNetworkInterfaceResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteNetworkInterfaceRequest, DeleteNetworkInterfaceResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }