/// <summary> /// Initiates the asynchronous execution of the DetachNetworkInterface operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachNetworkInterface 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<DetachNetworkInterfaceResponse> DetachNetworkInterfaceAsync(DetachNetworkInterfaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachNetworkInterfaceRequestMarshaller(); var unmarshaller = DetachNetworkInterfaceResponseUnmarshaller.Instance; return InvokeAsync<DetachNetworkInterfaceRequest,DetachNetworkInterfaceResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void DetachNetworkInterfaceMarshallTest() { var operation = service_model.FindOperation("DetachNetworkInterface"); var request = InstantiateClassGenerator.Execute<DetachNetworkInterfaceRequest>(); var marshaller = new DetachNetworkInterfaceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Detaches a network interface from an instance. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachNetworkInterface service method.</param> /// /// <returns>The response from the DetachNetworkInterface service method, as returned by EC2.</returns> public DetachNetworkInterfaceResponse DetachNetworkInterface(DetachNetworkInterfaceRequest request) { var marshaller = new DetachNetworkInterfaceRequestMarshaller(); var unmarshaller = DetachNetworkInterfaceResponseUnmarshaller.Instance; return Invoke<DetachNetworkInterfaceRequest,DetachNetworkInterfaceResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DetachNetworkInterface operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachNetworkInterface 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 EndDetachNetworkInterface /// operation.</returns> public IAsyncResult BeginDetachNetworkInterface(DetachNetworkInterfaceRequest request, AsyncCallback callback, object state) { var marshaller = new DetachNetworkInterfaceRequestMarshaller(); var unmarshaller = DetachNetworkInterfaceResponseUnmarshaller.Instance; return BeginInvoke<DetachNetworkInterfaceRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDetachNetworkInterface(DetachNetworkInterfaceRequest detachNetworkInterfaceRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DetachNetworkInterfaceRequestMarshaller().Marshall(detachNetworkInterfaceRequest); var unmarshaller = DetachNetworkInterfaceResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Detaches a network interface from an instance.</para> /// </summary> /// /// <param name="detachNetworkInterfaceRequest">Container for the necessary parameters to execute the DetachNetworkInterface 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<DetachNetworkInterfaceResponse> DetachNetworkInterfaceAsync(DetachNetworkInterfaceRequest detachNetworkInterfaceRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachNetworkInterfaceRequestMarshaller(); var unmarshaller = DetachNetworkInterfaceResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DetachNetworkInterfaceRequest, DetachNetworkInterfaceResponse>(detachNetworkInterfaceRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DetachNetworkInterface operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.DetachNetworkInterface"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachNetworkInterface 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<DetachNetworkInterfaceResponse> DetachNetworkInterfaceAsync(DetachNetworkInterfaceRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachNetworkInterfaceRequestMarshaller(); var unmarshaller = DetachNetworkInterfaceResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DetachNetworkInterfaceRequest, DetachNetworkInterfaceResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }