Esempio n. 1
0
        void Init()
        {
            _coreHttpClient     = AzureRestClient.CreateHttpClient(this, "2012-03-01", () => LogDestinations);
            _databaseHttpClient = AzureRestClient.CreateHttpClient(this, "1.0", () => LogDestinations);

            CloudServices          = new LatentSequence <CloudService>(GetCloudServicesAsync);
            DatabaseServers        = new LatentSequence <DatabaseServer>(GetDatabaseServersAsync);
            TrafficManagerProfiles = new LatentSequence <TrafficManagerProfile>(GetTrafficManagerProfilesAsync);
        }
Esempio n. 2
0
        void Init()
        {
            _coreHttpClient20120301 = AzureRestClient.CreateHttpClient(this, "2012-03-01", () => LogDestinations);
            _coreHttpClient20131101 = AzureRestClient.CreateHttpClient(this, "2013-11-01", () => LogDestinations);
            _coreHttpClient20140601 = AzureRestClient.CreateHttpClient(this, "2014-06-01", () => LogDestinations);
            _databaseHttpClient     = AzureRestClient.CreateHttpClient(this, "1.0", () => LogDestinations);

            CloudServices          = new LatentSequence <CloudService>(GetCloudServicesAsync);
            DatabaseServers        = new LatentSequence <DatabaseServer>(GetDatabaseServersAsync);
            TrafficManagerProfiles = new LatentSequence <TrafficManagerProfile>(GetTrafficManagerProfilesAsync);
            StorageAccounts        = new LatentSequence <StorageAccount>(GetStorageAccountsAsync);
            AffinityGroups         = new LatentSequence <AffinityGroup>(GetAffinityGroupsAsync);
            Locations   = new LatentSequence <Location>(GetLocationsAsync);
            ReservedIps = new LatentSequence <ReservedIp>(GetReservedIpsAsync);
        }