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

SetSMSAttributesAsync() public method

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

Same methods

AmazonSimpleNotificationServiceClient::SetSMSAttributesAsync ( SetSMSAttributesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient