internal LookupDeveloperIdentityResponse LookupDeveloperIdentity(LookupDeveloperIdentityRequest request) { LookupDeveloperIdentityRequestMarshaller marshaller = new LookupDeveloperIdentityRequestMarshaller(); LookupDeveloperIdentityResponseUnmarshaller instance = LookupDeveloperIdentityResponseUnmarshaller.Instance; return(Invoke <LookupDeveloperIdentityRequest, LookupDeveloperIdentityResponse>(request, marshaller, instance)); }
/// <summary> /// Initiates the asynchronous execution of the LookupDeveloperIdentity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the LookupDeveloperIdentity 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 <LookupDeveloperIdentityResponse> LookupDeveloperIdentityAsync(LookupDeveloperIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new LookupDeveloperIdentityRequestMarshaller(); var unmarshaller = LookupDeveloperIdentityResponseUnmarshaller.Instance; return(InvokeAsync <LookupDeveloperIdentityRequest, LookupDeveloperIdentityResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the LookupDeveloperIdentity operation. /// <seealso cref="Amazon.CognitoIdentity.IAmazonCognitoIdentity"/> /// </summary> /// <param name="request">Container for the necessary parameters to execute the LookupDeveloperIdentity operation.</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>void</returns> public void LookupDeveloperIdentityAsync(LookupDeveloperIdentityRequest request, AmazonServiceCallback callback, object state) { if (!AmazonInitializer.IsInitialized) { throw new Exception("AWSPrefab is not added to the scene"); } ThreadPool.QueueUserWorkItem(new WaitCallback(delegate { var marshaller = new LookupDeveloperIdentityRequestMarshaller(); var unmarshaller = LookupDeveloperIdentityResponseUnmarshaller.Instance; Invoke(request, callback, state, marshaller, unmarshaller, signer); })); return; }
public void LookupDeveloperIdentityAsync(LookupDeveloperIdentityRequest request, AmazonServiceCallback <LookupDeveloperIdentityRequest, LookupDeveloperIdentityResponse> callback, AsyncOptions options = null) { options = ((options == null) ? new AsyncOptions() : options); LookupDeveloperIdentityRequestMarshaller marshaller = new LookupDeveloperIdentityRequestMarshaller(); LookupDeveloperIdentityResponseUnmarshaller instance = LookupDeveloperIdentityResponseUnmarshaller.Instance; Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if (callback != null) { callbackHelper = delegate(AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) { AmazonServiceResult <LookupDeveloperIdentityRequest, LookupDeveloperIdentityResponse> responseObject = new AmazonServiceResult <LookupDeveloperIdentityRequest, LookupDeveloperIdentityResponse>((LookupDeveloperIdentityRequest)req, (LookupDeveloperIdentityResponse)res, ex, ao.State); callback(responseObject); }; } BeginInvoke(request, marshaller, instance, options, callbackHelper); }