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

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

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

            return InvokeAsync<StopInstanceRequest,StopInstanceResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonLightsailClient