/// <summary> /// Gets a service operation health status. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <OperationsHealth> > ListByLocationNextAsync(this IOperationsHealthOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a service operation health status. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <OperationsHealth> ListByLocationNext(this IOperationsHealthOperations operations, string nextPageLink) { return(operations.ListByLocationNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets a service operation health status. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// The name of the region where the resource is located. /// </param> public static IPage <OperationsHealth> ListByLocation(this IOperationsHealthOperations operations, string locationName) { return(operations.ListByLocationAsync(locationName).GetAwaiter().GetResult()); }