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

DeleteIdentitiesAsync() public method

Initiates the asynchronous execution of the DeleteIdentities operation.
public DeleteIdentitiesAsync ( Amazon.CognitoIdentity.Model.DeleteIdentitiesRequest request, DeleteIdentitiesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.CognitoIdentity.Model.DeleteIdentitiesRequest Container for the necessary parameters to execute the DeleteIdentities operation on AmazonCognitoIdentityClient.
callback DeleteIdentitiesResponse>.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 DeleteIdentitiesAsync(DeleteIdentitiesRequest request, AmazonServiceCallback<DeleteIdentitiesRequest, DeleteIdentitiesResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new DeleteIdentitiesRequestMarshaller();
            var unmarshaller = DeleteIdentitiesResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<DeleteIdentitiesRequest,DeleteIdentitiesResponse> responseObject 
                            = new AmazonServiceResult<DeleteIdentitiesRequest,DeleteIdentitiesResponse>((DeleteIdentitiesRequest)req, (DeleteIdentitiesResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<DeleteIdentitiesRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonCognitoIdentityClient::DeleteIdentitiesAsync ( Amazon.CognitoIdentity.Model.DeleteIdentitiesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonCognitoIdentityClient