/// <summary>
 /// Gets all redis caches in a resource group (if provided) otherwise
 /// all in subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Management.Redis.IRedisOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Optional. The name of the resource group.
 /// </param>
 /// <returns>
 /// The response of list redis operation.
 /// </returns>
 public static Task <RedisListResponse> ListAsync(this IRedisOperations operations, string resourceGroupName)
 {
     return(operations.ListAsync(resourceGroupName, CancellationToken.None));
 }
Exemple #2
0
 /// <summary>
 /// Gets all Redis caches in the specified subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <RedisResource> List(this IRedisOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }