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

UpdateSSHPublicKeyAsync() public method

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

Same methods

AmazonIdentityManagementServiceClient::UpdateSSHPublicKeyAsync ( UpdateSSHPublicKeyRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient