Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.ListPhoneNumbersOptedOutAsync C# (CSharp) Method

ListPhoneNumbersOptedOutAsync() public method

Initiates the asynchronous execution of the ListPhoneNumbersOptedOut operation.
public ListPhoneNumbersOptedOutAsync ( ListPhoneNumbersOptedOutRequest request, ListPhoneNumbersOptedOutResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.SimpleNotificationService.Model.ListPhoneNumbersOptedOutRequest Container for the necessary parameters to execute the ListPhoneNumbersOptedOut operation on AmazonSimpleNotificationServiceClient.
callback ListPhoneNumbersOptedOutResponse>.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 ListPhoneNumbersOptedOutAsync(ListPhoneNumbersOptedOutRequest request, AmazonServiceCallback<ListPhoneNumbersOptedOutRequest, ListPhoneNumbersOptedOutResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new ListPhoneNumbersOptedOutRequestMarshaller();
            var unmarshaller = ListPhoneNumbersOptedOutResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<ListPhoneNumbersOptedOutRequest,ListPhoneNumbersOptedOutResponse> responseObject 
                            = new AmazonServiceResult<ListPhoneNumbersOptedOutRequest,ListPhoneNumbersOptedOutResponse>((ListPhoneNumbersOptedOutRequest)req, (ListPhoneNumbersOptedOutResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<ListPhoneNumbersOptedOutRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonSimpleNotificationServiceClient::ListPhoneNumbersOptedOutAsync ( ListPhoneNumbersOptedOutRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient