internal InvokeAsyncResponse InvokeAsync(InvokeAsyncRequest request) { var marshaller = new InvokeAsyncRequestMarshaller(); var unmarshaller = InvokeAsyncResponseUnmarshaller.Instance; return(Invoke <InvokeAsyncRequest, InvokeAsyncResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the InvokeAsync operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the InvokeAsync 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 <InvokeAsyncResponse> InvokeAsyncAsync(InvokeAsyncRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new InvokeAsyncRequestMarshaller(); var unmarshaller = InvokeAsyncResponseUnmarshaller.Instance; return(InvokeAsync <InvokeAsyncRequest, InvokeAsyncResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void InvokeAsyncAsync(InvokeAsyncRequest request, AmazonServiceCallback <InvokeAsyncRequest, InvokeAsyncResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new InvokeAsyncRequestMarshaller(); var unmarshaller = InvokeAsyncResponseUnmarshaller.Instance; Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if (callback != null) { callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult <InvokeAsyncRequest, InvokeAsyncResponse> responseObject = new AmazonServiceResult <InvokeAsyncRequest, InvokeAsyncResponse>((InvokeAsyncRequest)req, (InvokeAsyncResponse)res, ex, ao.State); callback(responseObject); } } ; BeginInvoke <InvokeAsyncRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
public void InvokeAsyncAsync(InvokeAsyncRequest request, AmazonServiceCallback <InvokeAsyncRequest, InvokeAsyncResponse> callback, AsyncOptions options = null) { throw new System.NotImplementedException(); }