Changeset 7655 for branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Model
- Timestamp:
- 03/22/12 16:08:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Model/Subscription.cs
r7326 r7655 101 101 this.DiscoverServices = subscription.DiscoverServices; 102 102 } 103 104 public string GetSettingString() { 105 return SubscriptionID + ";" + CertificateThumbprint; 106 } 107 108 public static Subscription ParseSettingString(string settingString) { 109 int idxSeparator = settingString.IndexOf(';'); 110 string subId = settingString.Substring(0, idxSeparator); 111 string certThumbprint = settingString.Substring(idxSeparator, settingString.Length); 112 Subscription sub = new Subscription(); 113 sub.SubscriptionID = subId; 114 sub.CertificateThumbprint = certThumbprint; 115 return sub; 116 } 103 117 } 104 118 }
Note: See TracChangeset
for help on using the changeset viewer.