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); } }
/// <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); } }
} internal static void LogObject(LocationList locationList) { if (locationList == null) { return; } Console.WriteLine("LocationList contains {0} item(s).", locationList.Count); foreach (var item in locationList)