- Timestamp:
- 12/06/11 17:14:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.HiveEngine/3.3/HiveEngine.cs
r6984 r7137 99 99 this.Priority = 0; 100 100 this.log = new ThreadSafeLog(); 101 this.IsAllowedPrivileged = ServiceLocator.Instance.CallHiveService((s) => s.IsAllowedPrivileged());101 this.IsAllowedPrivileged = HiveServiceLocator.Instance.CallHiveService((s) => s.IsAllowedPrivileged()); 102 102 } 103 103 … … 144 144 if (firstRun) { 145 145 TaskScheduler.UnobservedTaskException += new EventHandler<UnobservedTaskExceptionEventArgs>(TaskScheduler_UnobservedTaskException); 146 this.OnlinePlugins = ServiceLocator.Instance.CallHiveService(s => s.GetPlugins()).Where(x => x.Hash != null).ToList();146 this.OnlinePlugins = HiveServiceLocator.Instance.CallHiveService(s => s.GetPlugins()).Where(x => x.Hash != null).ToList(); 147 147 this.AlreadyUploadedPlugins = new List<Plugin>(); 148 148 firstRun = false; … … 288 288 log.LogException(e); 289 289 throw e; 290 } 291 finally { 290 } finally { 292 291 DisposeJob(refreshableJob); 293 292 } … … 323 322 private void DeleteHiveExperiment(Guid jobId) { 324 323 HiveClient.TryAndRepeat(() => { 325 ServiceLocator.Instance.CallHiveService(s => s.DeleteJob(jobId));324 HiveServiceLocator.Instance.CallHiveService(s => s.DeleteJob(jobId)); 326 325 }, 5, string.Format("Could not delete jobs")); 327 326 } 328 327 329 328 private List<Guid> GetResourceIds() { 330 return ServiceLocator.Instance.CallHiveService(service => {329 return HiveServiceLocator.Instance.CallHiveService(service => { 331 330 var resourceNames = ResourceNames.Split(';'); 332 331 var resourceIds = new List<Guid>();
Note: See TracChangeset
for help on using the changeset viewer.