示例#1
0
 /// <summary>
 ///   Synchronously get a list of resources that are registered for this subscription
 /// </summary>
 /// <param name="client">The client object.</param>
 /// <param name="knownResourceTypes">Resource types to query for.</param>
 /// <returns>Sequence of the state of each of the requested resources.</returns>
 public static IEnumerable <ProviderResource> ListResources(this ISubscriptionClient client,
                                                            IEnumerable <string> knownResourceTypes)
 {
     return(client.ListResourcesAsync(knownResourceTypes).Result);
 }