public AzureWebsitesUsageClient(AzureManagementRestClient client, CertificateCloudCredentials credentials)
        {
            var azureWebsiteApiClient = new AzureWebsiteApiClient(client);

            _azureWebsitesInfoClient    = new AzureWebsitesInfoApiClient(azureWebsiteApiClient);
            _azureWebsitesMetricsClient = new AzureWebsitesMetricsApiClient(azureWebsiteApiClient);
            _metricsApiClient           = new AzureMetricsApiClient(credentials);
        }
		public AzureCloudServicesClient(AzureManagementRestClient client, CertificateCloudCredentials credentials) {
			_azureCloudServiceInfoClient = new AzureCloudServiceInfoApiClient(client);
			_azureMetricsApiClient = new AzureCloudServiceMetricsApiClient(new AzureMetricsApiClient(credentials));
		}
		public AzureWebsitesUsageClient(AzureManagementRestClient client, CertificateCloudCredentials credentials) {
			var azureWebsiteApiClient = new AzureWebsiteApiClient(client);
			_azureWebsitesInfoClient = new AzureWebsitesInfoApiClient(azureWebsiteApiClient);
			_azureWebsitesMetricsClient = new AzureWebsitesMetricsApiClient(azureWebsiteApiClient);
			_metricsApiClient =  new AzureMetricsApiClient(credentials);
		}
		public AzureSubscriptionInfoClient(MetricsEndpointConfiguration metricsEndpointConfiguration) {
			_subscriptionId = metricsEndpointConfiguration.SubscriptionId;
			_client = new AzureManagementRestClient(metricsEndpointConfiguration.GetCertificateCloudCredentials());
			_websiteInfoClient = new AzureWebsitesInfoApiClient(new AzureWebsiteApiClient(_client));
		}
Esempio n. 5
0
 public AzureWebsiteApiClient(AzureManagementRestClient client)
 {
     _client = client;
 }
 public AzureCloudServicesClient(AzureManagementRestClient client, CertificateCloudCredentials credentials)
 {
     _azureCloudServiceInfoClient = new AzureCloudServiceInfoApiClient(client);
     _azureMetricsApiClient       = new AzureCloudServiceMetricsApiClient(new AzureMetricsApiClient(credentials));
 }
Esempio n. 7
0
 public AzureUsageClient(MetricsEndpointConfiguration config)
 {
     _credentials = config.GetCertificateCloudCredentials();
     _client      = GetClient(config.GetCertificateCloudCredentials());
 }
 public AzureSubscriptionInfoClient(MetricsEndpointConfiguration metricsEndpointConfiguration)
 {
     _subscriptionId    = metricsEndpointConfiguration.SubscriptionId;
     _client            = new AzureManagementRestClient(metricsEndpointConfiguration.GetCertificateCloudCredentials());
     _websiteInfoClient = new AzureWebsitesInfoApiClient(new AzureWebsiteApiClient(_client));
 }
		public AzureCloudServiceInfoApiClient(AzureManagementRestClient client) {
			_client = client;
		}
Esempio n. 10
0
        public AzureUsageClient(MetricsEndpointConfiguration config) {
			_credentials  = config.GetCertificateCloudCredentials();
			_client = GetClient(config.GetCertificateCloudCredentials());
        }
 public AzureCloudServiceInfoApiClient(AzureManagementRestClient client)
 {
     _client = client;
 }