Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/09/12 16:14:57 (12 years ago)
Author:
spimming
Message:

#1680:

  • Azure management utils initial version added
  • View for cloud resources
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;
     1using System;
     2using HeuristicLab.Clients.Hive.CloudManager.Azure;
     3using HeuristicLab.Clients.Hive.CloudManager.Model;
     4using HeuristicLab.Common;
    25using HeuristicLab.Core;
    36
     
    1619
    1720    #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
    1871    #endregion
    1972
Note: See TracChangeset for help on using the changeset viewer.