Changeset 7324 for branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/CloudManagerClient.cs
- Timestamp:
- 01/13/12 13:45:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/CloudManagerClient.cs
r7317 r7324 16 16 } 17 17 18 private CloudManagerClient() { } 18 private CloudManagerClient() { 19 subscriptions = new ItemList<Subscription>(); 20 azureProvider = new AzureProvider(); 21 } 19 22 20 23 #region Properties … … 59 62 60 63 try { 61 64 IItemList<Subscription> subs = new ItemList<Subscription>(Subscriptions); 65 // TODO ... 62 66 } 63 67 catch { … … 71 75 #endregion 72 76 77 public void Add(Subscription subscription) { 78 if (subscription == null) { 79 throw new ArgumentNullException("subscription", "Subscription must not be null."); 80 } 81 if (Subscriptions.Contains(subscription)) { 82 Subscriptions.Remove(subscription); 83 } 84 Subscriptions.Add(subscription); 85 } 86 87 public void Remove(Subscription subscription) { 88 if (subscription == null) { 89 throw new ArgumentNullException("subscription", "Subscription must not be null."); 90 } 91 if (Subscriptions.Contains(subscription)) { 92 Subscriptions.Remove(subscription); 93 } 94 } 95 96 97 73 98 74 99 }
Note: See TracChangeset
for help on using the changeset viewer.