- Timestamp:
- 03/16/11 13:31:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.HiveEngine/3.3/HiveEngine.cs
r5399 r5707 2 2 using System.Collections.Generic; 3 3 using System.Linq; 4 using System.Text; 4 using System.Threading; 5 using System.Threading.Tasks; 6 using HeuristicLab.Common; 7 using HeuristicLab.Core; 8 using HeuristicLab.Hive.Contracts; 9 using HeuristicLab.Hive.Contracts.BusinessObjects; 10 using HeuristicLab.Hive.Contracts.Interfaces; 11 using HeuristicLab.Hive.Contracts.ResponseObjects; 12 using HeuristicLab.Hive.ExperimentManager; 5 13 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 6 using HeuristicLab.Core;7 using HeuristicLab.Common;8 using HeuristicLab.Hive.Contracts.Interfaces;9 using HeuristicLab.Clients.Common;10 using HeuristicLab.Hive.ExperimentManager;11 using HeuristicLab.Hive.Contracts.BusinessObjects;12 14 using HeuristicLab.PluginInfrastructure; 13 using HeuristicLab.Hive.Contracts.ResponseObjects;14 using System.Threading;15 using HeuristicLab.Random;16 using System.Threading.Tasks;17 15 18 16 namespace HeuristicLab.HiveEngine { … … 245 243 Thread.Sleep(10000); 246 244 try { 247 using (Disposable <IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {245 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) { 248 246 results = service.Obj.GetJobResults(remainingJobIds).Obj; 249 247 } … … 312 310 TryAndRepeat(() => { 313 311 LogMessage(string.Format("Deleting {0} jobs on hive.", jobIndices.Count)); 314 using (Disposable <IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {312 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) { 315 313 foreach (Guid jobId in jobIndices.Keys) { 316 314 service.Obj.DeleteJob(jobId); … … 359 357 cancellationToken.ThrowIfCancellationRequested(); 360 358 try { 361 using (Disposable <IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {359 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) { 362 360 response = service.Obj.AddJobWithGroupStrings(serializedJob, groups); 363 361 serializedJob = null; … … 390 388 cancellationToken.ThrowIfCancellationRequested(); 391 389 try { 392 using (Disposable <IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {390 using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) { 393 391 serializedJob = service.Obj.GetLastSerializedResult(jobId).Obj; 394 392 }
Note: See TracChangeset
for help on using the changeset viewer.