Changeset 7668
- Timestamp:
- 03/28/12 14:38:56 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/CloudManagerClient.cs
r7663 r7668 228 228 229 229 public void RestoreSubscriptionsFromUserConfig() { 230 StringCollection strCol = new StringCollection();230 StringCollection strCol = Settings.Default.AzureSubscriptions; 231 231 foreach (string azureSub in strCol) { 232 232 string setting = CryptoService.ToInsecureString(CryptoService.DecryptString(azureSub)); 233 233 Subscription s = Subscription.ParseSettingString(setting); 234 234 s.SaveToConfig = true; 235 s.DiscoverServices = true; 235 236 Add(s); 236 237 } -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Model/Subscription.cs
r7655 r7668 109 109 int idxSeparator = settingString.IndexOf(';'); 110 110 string subId = settingString.Substring(0, idxSeparator); 111 string certThumbprint = settingString.Substring(idxSeparator, settingString.Length); 111 int length = settingString.Length - 1 - idxSeparator; 112 string certThumbprint = settingString.Substring(idxSeparator + 1, length); 112 113 Subscription sub = new Subscription(); 113 114 sub.SubscriptionID = subId; -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/CloudResourcesView.cs
r7655 r7668 51 51 timer.Start(); 52 52 dueTime = DateTime.Now.AddMilliseconds(updateInterval); 53 54 CloudManagerClient.Instance.RestoreSubscriptionsFromUserConfig(); 53 55 } 54 56
Note: See TracChangeset
for help on using the changeset viewer.