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

DeletePlatformApplicationAsync() public method

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

Same methods

AmazonSimpleNotificationServiceClient::DeletePlatformApplicationAsync ( DeletePlatformApplicationRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient