Amazon.SimpleEmail.AmazonSimpleEmailServiceClient.ListIdentityPoliciesAsync C# (CSharp) Метод

ListIdentityPoliciesAsync() публичный Метод

Initiates the asynchronous execution of the ListIdentityPolicies operation.
public ListIdentityPoliciesAsync ( ListIdentityPoliciesRequest request, ListIdentityPoliciesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request ListIdentityPoliciesRequest Container for the necessary parameters to execute the ListIdentityPolicies operation on AmazonSimpleEmailServiceClient.
callback ListIdentityPoliciesResponse>.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.
Результат void
        public void ListIdentityPoliciesAsync(ListIdentityPoliciesRequest request, AmazonServiceCallback<ListIdentityPoliciesRequest, ListIdentityPoliciesResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new ListIdentityPoliciesRequestMarshaller();
            var unmarshaller = ListIdentityPoliciesResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<ListIdentityPoliciesRequest,ListIdentityPoliciesResponse> responseObject 
                            = new AmazonServiceResult<ListIdentityPoliciesRequest,ListIdentityPoliciesResponse>((ListIdentityPoliciesRequest)req, (ListIdentityPoliciesResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<ListIdentityPoliciesRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonSimpleEmailServiceClient::ListIdentityPoliciesAsync ( ListIdentityPoliciesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleEmailServiceClient