Exemplo n.º 1
0
            {
                LogObject(item);
            }
        }

        internal static void LogObject(AffinityGroupList affinityGroupList)
        {
            if (affinityGroupList == null)
                return;

            Console.WriteLine("AffinityGroupList contains {0} item(s).", affinityGroupList.Count);
            foreach (var item in affinityGroupList)
            {
                LogObject(item);
Exemplo n.º 2
0
        private static void InitializeValidStorageServiceData()
        {
            StorageService myStore = new StorageService();
            myStore.ServiceName = "mystore";
            myStore.StorageServiceKeys = new StorageServiceKeys();
            myStore.StorageServiceKeys.Primary = "=132321982cddsdsa";
            myStore.StorageServiceKeys.Secondary = "=w8uidjew4378891289";
            myStore.StorageServiceProperties = new StorageServiceProperties();
            myStore.StorageServiceProperties.Location = ArgumentConstants.Locations[Microsoft.WindowsAzure.Management.CloudService.Model.Location.NorthCentralUS];
            myStore.StorageServiceProperties.Status = StorageServiceStatus.Created;
            ValidStorageService.Add(myStore);

            StorageService testStore = new StorageService();
            testStore.ServiceName = "teststore";
            testStore.StorageServiceKeys = new StorageServiceKeys();
            testStore.StorageServiceKeys.Primary = "=/se23ew2343221";
            testStore.StorageServiceKeys.Secondary = "==0--3210-//121313233290sd";
            testStore.StorageServiceProperties = new StorageServiceProperties();
            testStore.StorageServiceProperties.Location = ArgumentConstants.Locations[Microsoft.WindowsAzure.Management.CloudService.Model.Location.EastAsia];
            testStore.StorageServiceProperties.Status = StorageServiceStatus.Creating;
            ValidStorageService.Add(testStore);

            StorageService MyCompanyStore = new StorageService();
            MyCompanyStore.ServiceName = "mycompanystore";
            MyCompanyStore.StorageServiceKeys = new StorageServiceKeys();
            MyCompanyStore.StorageServiceKeys.Primary = "121/21dssdsds=";
            MyCompanyStore.StorageServiceKeys.Secondary = "023432dfelfema1=";
            MyCompanyStore.StorageServiceProperties = new StorageServiceProperties();
            MyCompanyStore.StorageServiceProperties.Location = ArgumentConstants.Locations[Microsoft.WindowsAzure.Management.CloudService.Model.Location.NorthEurope];
            MyCompanyStore.StorageServiceProperties.Status = StorageServiceStatus.ResolvingDns;
            ValidStorageService.Add(MyCompanyStore);
        }