Exemplo n.º 1
0
        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
 /// <summary>
 /// Connect to an Azure subscription and obtain a list of affinity groups.
 /// </summary>
 protected override void AzureExecute()
 {
     try
     {
         AffinityGroupList groups = this.RetryCall(s => this.Channel.ListAffinityGroups(s));
         this.AffinityGroups.Set(this.ActivityContext, groups);
     }
     catch (EndpointNotFoundException ex)
     {
         this.LogBuildMessage(ex.Message);
         this.AffinityGroups.Set(this.ActivityContext, null);
     }
 }
Exemplo n.º 3
0
        }

        internal static void LogObject(LocationList locationList)
        {
            if (locationList == null)
            {
                return;
            }

            Console.WriteLine("LocationList contains {0} item(s).", locationList.Count);
            foreach (var item in locationList)