/// <summary> /// Get the list of offers under a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group the resource is located under. /// </param> public static IPage <Offer> List(this IOffersOperations operations, string resourceGroupName) { return(operations.ListAsync(resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Get the list of public offers for the root provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <Offer> List(this IOffersOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }