Changeset 5707 for branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager
- Timestamp:
- 03/16/11 13:31:37 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3/HiveExperiment.cs
r5179 r5707 32 32 using HeuristicLab.Hive.ExperimentManager.Jobs; 33 33 using HeuristicLab.Hive.Tracing; 34 using HeuristicLab.Clients.Common;35 34 36 35 namespace HeuristicLab.Hive.ExperimentManager { … … 227 226 this.progress = new Progress("Connecting to server..."); 228 227 IsProgressing = true; 229 using (Disposable <IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {228 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) { 230 229 IEnumerable<string> groups = ToResourceIdList(this.ResourceIds); 231 230 this.HiveJob.SetIndexInParentOptimizerList(null); … … 309 308 310 309 public void Stop() { 311 using (Disposable <IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {310 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) { 312 311 foreach (HiveJob hj in HiveJob.GetAllHiveJobs()) { 313 312 service.Obj.AbortJob(hj.JobDto.Id); … … 537 536 538 537 progress.Status = "Connecting to Server..."; 539 using (Disposable <IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {538 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) { 540 539 progress.Status = "Downloading list of jobs..."; 541 540 allResults = service.Obj.GetChildJobResults(rootJobId.Value, true, true).Obj; … … 591 590 592 591 private OptimizerJob LoadOptimizerJob(Guid jobId) { 593 using (Disposable <IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {592 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) { 594 593 ResponseObject<SerializedJob> serializedJob = service.Obj.GetLastSerializedResult(jobId); 595 594 try { -
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3/HiveExperimentManager.cs
r5399 r5707 102 102 this.HiveExperiments = new HiveExperimentCollection(); 103 103 } 104 using (Disposable <IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {104 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) { 105 105 currentlyUpdating = true; 106 106 ResponseObject<HiveExperimentDtoList> response = service.Obj.GetHiveExperiments(); … … 151 151 void hiveExperiments_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<HiveExperiment> e) { 152 152 if (!currentlyUpdating) { 153 using (Disposable <IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {153 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) { 154 154 foreach (HiveExperiment item in e.Items) { 155 155 if (item.HiveExperimentId != Guid.Empty) { -
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3/HiveJobDownloader.cs
r5329 r5707 2 2 using System.Collections.Generic; 3 3 using System.Linq; 4 using System.Text;5 using HeuristicLab.Hive.ExperimentManager.Jobs;6 4 using System.Threading; 7 5 using System.Threading.Tasks; 6 using HeuristicLab.Hive.Contracts; 8 7 using HeuristicLab.Hive.Contracts.BusinessObjects; 9 8 using HeuristicLab.Hive.Contracts.Interfaces; 10 using HeuristicLab.Clients.Common;11 9 12 10 namespace HeuristicLab.Hive.ExperimentManager { … … 79 77 try { 80 78 if (abort) return null; 81 using (Disposable <IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {79 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) { 82 80 result = service.Obj.GetLastSerializedResult((Guid)jobId).Obj; 83 81 } -
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3/JobResultPoller.cs
r5399 r5707 27 27 using HeuristicLab.Hive.Contracts.Interfaces; 28 28 using HeuristicLab.Hive.Contracts.ResponseObjects; 29 using HeuristicLab.Clients.Common;30 29 31 30 namespace HeuristicLab.Hive.ExperimentManager { … … 102 101 repetitions--; 103 102 try { 104 using (Disposable <IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {103 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) { 105 104 response = service.Obj.GetChildJobResults(hiveJob.JobDto.Id, true, true); 106 105 }
Note: See TracChangeset
for help on using the changeset viewer.