Amazon.CognitoSync.AmazonCognitoSyncClient.DescribeIdentityPoolUsageAsync C# (CSharp) Method

DescribeIdentityPoolUsageAsync() public method

Initiates the asynchronous execution of the DescribeIdentityPoolUsage operation.
public DescribeIdentityPoolUsageAsync ( Amazon.CognitoSync.Model.DescribeIdentityPoolUsageRequest request, DescribeIdentityPoolUsageResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.CognitoSync.Model.DescribeIdentityPoolUsageRequest Container for the necessary parameters to execute the DescribeIdentityPoolUsage operation on AmazonCognitoSyncClient.
callback DescribeIdentityPoolUsageResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options Amazon.Runtime.AsyncOptions A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return void
        public void DescribeIdentityPoolUsageAsync(DescribeIdentityPoolUsageRequest request, AmazonServiceCallback<DescribeIdentityPoolUsageRequest, DescribeIdentityPoolUsageResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new DescribeIdentityPoolUsageRequestMarshaller();
            var unmarshaller = DescribeIdentityPoolUsageResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<DescribeIdentityPoolUsageRequest,DescribeIdentityPoolUsageResponse> responseObject 
                            = new AmazonServiceResult<DescribeIdentityPoolUsageRequest,DescribeIdentityPoolUsageResponse>((DescribeIdentityPoolUsageRequest)req, (DescribeIdentityPoolUsageResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<DescribeIdentityPoolUsageRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonCognitoSyncClient::DescribeIdentityPoolUsageAsync ( Amazon.CognitoSync.Model.DescribeIdentityPoolUsageRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonCognitoSyncClient::DescribeIdentityPoolUsageAsync ( string identityPoolId, System cancellationToken = default(CancellationToken) ) : Task
AmazonCognitoSyncClient::DescribeIdentityPoolUsageAsync ( string identityPoolId, DescribeIdentityPoolUsageResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void