/// <summary> /// Get the specified location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The AzureStack location. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Location> GetAsync(this ILocationsOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }