Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.DeleteServerCertificateAsync C# (CSharp) Method

DeleteServerCertificateAsync() public method

Initiates the asynchronous execution of the DeleteServerCertificate operation.
public DeleteServerCertificateAsync ( DeleteServerCertificateRequest request, DeleteServerCertificateResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.IdentityManagement.Model.DeleteServerCertificateRequest Container for the necessary parameters to execute the DeleteServerCertificate operation on AmazonIdentityManagementServiceClient.
callback DeleteServerCertificateResponse>.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 DeleteServerCertificateAsync(DeleteServerCertificateRequest request, AmazonServiceCallback<DeleteServerCertificateRequest, DeleteServerCertificateResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new DeleteServerCertificateRequestMarshaller();
            var unmarshaller = DeleteServerCertificateResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<DeleteServerCertificateRequest,DeleteServerCertificateResponse> responseObject 
                            = new AmazonServiceResult<DeleteServerCertificateRequest,DeleteServerCertificateResponse>((DeleteServerCertificateRequest)req, (DeleteServerCertificateResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<DeleteServerCertificateRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::DeleteServerCertificateAsync ( DeleteServerCertificateRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient