Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/Disposable.cs @ 4368

Last change on this file since 4368 was 4368, checked in by cneumuel, 14 years ago
  • created HiveClient which shows an overview over all submitted HiveExperiments
  • its possible to download all submitted HiveExperiments including results
  • Experiments are now sent as a whole to the Hive and the Hive-Slaves take care of creating child-jobs (if necessary). The parent job is then paused and will be reactivated when all child-jobs are finished
  • WcfService-Clients are now consistently managed by WcfServicePool which allows to use IDisposable-Pattern and always keeps exactly one proxy-object until all callers disposed them.
  • created ProgressView which is able to lock a View and display progress of an action. It also allows to simulate progress if no progress-information is available so that users don't get too nervous while waiting.
File size: 414 bytes
Line 
1using System;
2
3namespace HeuristicLab.Hive.Contracts {
4  public class Disposable<T> : IDisposable {
5    private T obj;
6    public T Obj {
7      get { return obj; }
8    }
9
10    public Disposable(T obj) {
11      this.obj = obj;
12    }
13
14    public void Dispose() {
15      if (OnDisposing != null)
16        OnDisposing(this, new EventArgs());
17    }
18
19    public event EventHandler OnDisposing;
20  }
21}
Note: See TracBrowser for help on using the repository browser.