Amazon.CognitoIdentity.AmazonCognitoIdentityClient.ListIdentitiesAsync C# (CSharp) Method

ListIdentitiesAsync() public method

Initiates the asynchronous execution of the ListIdentities operation.
public ListIdentitiesAsync ( ListIdentitiesRequest request, ListIdentitiesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request ListIdentitiesRequest Container for the necessary parameters to execute the ListIdentities operation on AmazonCognitoIdentityClient.
callback ListIdentitiesResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options 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 ListIdentitiesAsync(ListIdentitiesRequest request, AmazonServiceCallback<ListIdentitiesRequest, ListIdentitiesResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new ListIdentitiesRequestMarshaller();
            var unmarshaller = ListIdentitiesResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<ListIdentitiesRequest,ListIdentitiesResponse> responseObject 
                            = new AmazonServiceResult<ListIdentitiesRequest,ListIdentitiesResponse>((ListIdentitiesRequest)req, (ListIdentitiesResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<ListIdentitiesRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonCognitoIdentityClient::ListIdentitiesAsync ( ListIdentitiesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonCognitoIdentityClient