Changeset 5055 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HiveExperiment/HiveExperimentManagerClient.cs
- Timestamp:
- 12/07/10 11:19:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HiveExperiment/HiveExperimentManagerClient.cs
r4905 r5055 32 32 using HeuristicLab.Common; 33 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 34 using HeuristicLab.Clients.Common; 34 35 35 36 [Item("Hive Client", "Connects to Hive and lists all submitted experiments by the current user.")] … … 96 97 this.HiveExperiments = new ItemList<HiveExperimentClient>(); 97 98 } 98 using (var service = ServiceLocator.Instance. ServicePool.GetService()) {99 using (var service = ServiceLocator.Instance.GetService()) { 99 100 currentlyUpdating = true; 100 101 IEnumerable<DT.HiveExperiment> response = service.Obj.GetHiveExperiments(); … … 138 139 void hiveExperiments_ItemsRemoved(object sender, Collections.CollectionItemsChangedEventArgs<Collections.IndexedItem<HiveExperimentClient>> e) { 139 140 if (!currentlyUpdating) { 140 using (Disposable<IHiveService> service = ServiceLocator.Instance. ServicePool.GetService()) {141 using (Disposable<IHiveService> service = ServiceLocator.Instance.GetService()) { 141 142 foreach (IndexedItem<HiveExperimentClient> item in e.Items) { 142 143 if (item.Value.HiveExperimentId != Guid.Empty) {
Note: See TracChangeset
for help on using the changeset viewer.