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

SetPlatformApplicationAttributesAsync() public method

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

Same methods

AmazonSimpleNotificationServiceClient::SetPlatformApplicationAttributesAsync ( SetPlatformApplicationAttributesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient