- Timestamp:
- 05/24/11 14:30:55 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs
r6258 r6263 84 84 if (ServiceEventLog != null) { 85 85 try { 86 ServiceEventLog.WriteEntry(string.Format("Hive Slave threw exception: {0} with stack trace: {1}", ex.ToString(), ex.StackTrace) );86 ServiceEventLog.WriteEntry(string.Format("Hive Slave threw exception: {0} with stack trace: {1}", ex.ToString(), ex.StackTrace), EventLogEntryType.Error); 87 87 } 88 88 catch (Exception) { } … … 295 295 private void DoAbortAll() { 296 296 lock (slaveJobs) { 297 foreach (SlaveJob sj in slaveJobs.Values) {297 foreach (SlaveJob sj in new List<SlaveJob>(slaveJobs.Values)) { 298 298 if (!sj.Finished) { 299 299 sj.KillAppDomain(); … … 311 311 312 312 lock (slaveJobs) { 313 foreach (SlaveJob sj in slaveJobs.Values) {313 foreach (SlaveJob sj in new List<SlaveJob>(slaveJobs.Values)) { 314 314 if (!sj.Finished) { 315 315 sj.PauseJob(); … … 326 326 327 327 lock (slaveJobs) { 328 foreach (SlaveJob sj in slaveJobs.Values) {328 foreach (SlaveJob sj in new List<SlaveJob>(slaveJobs.Values)) { 329 329 if (!sj.Finished) { 330 330 sj.StopJob(); -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/ServiceContracts/ISlaveCommunication.cs
r5826 r6263 28 28 29 29 [OperationContract] 30 boolSubscribe();30 StatusCommons Subscribe(); 31 31 32 32 [OperationContract] -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/SlaveCommunicationService.cs
r5826 r6263 30 30 private static List<ISlaveCommunicationCallbacks> subscribers = new List<ISlaveCommunicationCallbacks>(); 31 31 32 public boolSubscribe() {32 public StatusCommons Subscribe() { 33 33 try { 34 34 ISlaveCommunicationCallbacks callback = OperationContext.Current.GetCallbackChannel<ISlaveCommunicationCallbacks>(); … … 36 36 subscribers.Add(callback); 37 37 } 38 return true;38 return ConfigManager.Instance.GetStatusForClientConsole(); 39 39 } 40 40 catch { 41 return false;41 return null; 42 42 } 43 43 }
Note: See TracChangeset
for help on using the changeset viewer.