public static async Task<ICollection<ChartInfo>> ListAllChartsForSubscription(MetricsEndpointConfiguration subscriptionConfig, string serviceName) {
            var infoClient = new AzureSubscriptionInfoClient(subscriptionConfig);

			var websites = infoClient.ListWebsites();
            var cloudservices = infoClient.ListCloudServiceRoles();

			return 
                (await websites).SelectMany(_=>GetWebsiteCharts(serviceName,_))
                .Concat(
                    (await cloudservices ).SelectMany(_=>GetCloudServiceCharts(serviceName,_)))
                .ToList();
        }
Beispiel #2
0
        public static async Task <ICollection <ChartInfo> > ListAllChartsForSubscription(MetricsEndpointConfiguration subscriptionConfig, string serviceName)
        {
            var infoClient = new AzureSubscriptionInfoClient(subscriptionConfig);

            var websites      = infoClient.ListWebsites();
            var cloudservices = infoClient.ListCloudServiceRoles();

            return
                ((await websites).SelectMany(_ => GetWebsiteCharts(serviceName, _))
                 .Concat(
                     (await cloudservices ).SelectMany(_ => GetCloudServiceCharts(serviceName, _)))
                 .ToList());
        }