Changeset 7299 for branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/CloudManagerClient.cs
- Timestamp:
- 01/09/12 16:14:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/CloudManagerClient.cs
r7278 r7299 1 using HeuristicLab.Common; 1 using System; 2 using HeuristicLab.Clients.Hive.CloudManager.Azure; 3 using HeuristicLab.Clients.Hive.CloudManager.Model; 4 using HeuristicLab.Common; 2 5 using HeuristicLab.Core; 3 6 … … 16 19 17 20 #region Properties 21 private ItemCollection<Subscription> subscriptions; 22 public ItemCollection<Subscription> Subscriptions { 23 get { return subscriptions; } 24 set { 25 if (value != subscriptions) { 26 subscriptions = value; 27 //fire event OnSubscriptionsChagned 28 } 29 } 30 } 31 32 private IAzureProvider azureProvider; 33 public IAzureProvider AzureProvider { 34 get { return azureProvider; } 35 set { azureProvider = value; } 36 } 37 38 #endregion 39 40 #region Events 41 42 public event EventHandler Refreshing; 43 private void OnRefreshing() { 44 EventHandler handler = Refreshing; 45 if (handler != null) handler(this, EventArgs.Empty); 46 } 47 public event EventHandler Refreshed; 48 private void OnRefreshed() { 49 var handler = Refreshed; 50 if (handler != null) handler(this, EventArgs.Empty); 51 } 52 53 #endregion 54 55 #region Refresh 56 57 public void Refresh() { 58 OnRefreshing(); 59 60 try { 61 62 } 63 catch { 64 throw; 65 } 66 finally { 67 OnRefreshed(); 68 } 69 } 70 18 71 #endregion 19 72
Note: See TracChangeset
for help on using the changeset viewer.