Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.ListServiceSpecificCredentialsAsync C# (CSharp) Method

ListServiceSpecificCredentialsAsync() public method

Initiates the asynchronous execution of the ListServiceSpecificCredentials operation.
public ListServiceSpecificCredentialsAsync ( ListServiceSpecificCredentialsRequest request, ListServiceSpecificCredentialsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request ListServiceSpecificCredentialsRequest Container for the necessary parameters to execute the ListServiceSpecificCredentials operation on AmazonIdentityManagementServiceClient.
callback ListServiceSpecificCredentialsResponse>.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 ListServiceSpecificCredentialsAsync(ListServiceSpecificCredentialsRequest request, AmazonServiceCallback<ListServiceSpecificCredentialsRequest, ListServiceSpecificCredentialsResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new ListServiceSpecificCredentialsRequestMarshaller();
            var unmarshaller = ListServiceSpecificCredentialsResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<ListServiceSpecificCredentialsRequest,ListServiceSpecificCredentialsResponse> responseObject 
                            = new AmazonServiceResult<ListServiceSpecificCredentialsRequest,ListServiceSpecificCredentialsResponse>((ListServiceSpecificCredentialsRequest)req, (ListServiceSpecificCredentialsResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<ListServiceSpecificCredentialsRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::ListServiceSpecificCredentialsAsync ( ListServiceSpecificCredentialsRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient