Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/28/12 17:22:34 (12 years ago)
Author:
spimming
Message:

#1680: Show progress view while restoring Azure Subscriptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/CloudManagerClient.cs

    r7668 r7670  
    227227    }
    228228
    229     public void RestoreSubscriptionsFromUserConfig() {
     229    public List<Subscription> RestoreSubscriptionsFromUserConfig() {
     230      List<Subscription> result = new List<Subscription>();
    230231      StringCollection strCol = Settings.Default.AzureSubscriptions;
    231232      foreach (string azureSub in strCol) {
    232233        string setting = CryptoService.ToInsecureString(CryptoService.DecryptString(azureSub));
    233         Subscription s = Subscription.ParseSettingString(setting);
     234        Subscription tmp = Subscription.ParseSettingString(setting);
     235        Subscription s = CloudManagerClient.Instance.AzureProvider.GetSubscriptionInfo(tmp.SubscriptionID, tmp.CertificateThumbprint);
    234236        s.SaveToConfig = true;
    235237        s.DiscoverServices = true;
    236         Add(s);
    237       }
     238        result.Add(s);
     239      }
     240      return result;
    238241    }
    239242  }
Note: See TracChangeset for help on using the changeset viewer.