Amazon.Lightsail.AmazonLightsailClient.GetKeyPairAsync C# (CSharp) Метод

GetKeyPairAsync() публичный Метод

Initiates the asynchronous execution of the GetKeyPair operation.
public GetKeyPairAsync ( GetKeyPairRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Lightsail.Model.GetKeyPairRequest Container for the necessary parameters to execute the GetKeyPair operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<GetKeyPairResponse> GetKeyPairAsync(GetKeyPairRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetKeyPairRequestMarshaller();
            var unmarshaller = GetKeyPairResponseUnmarshaller.Instance;

            return InvokeAsync<GetKeyPairRequest,GetKeyPairResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonLightsailClient