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

SetTopicAttributesAsync() public method

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

Same methods

AmazonSimpleNotificationServiceClient::SetTopicAttributesAsync ( SetTopicAttributesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::SetTopicAttributesAsync ( string topicArn, string attributeName, string attributeValue, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::SetTopicAttributesAsync ( string topicArn, string attributeName, string attributeValue, SetTopicAttributesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonSimpleNotificationServiceClient