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

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

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

            return InvokeAsync<GetRegionsRequest,GetRegionsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonLightsailClient