- Timestamp:
- 07/07/14 17:00:14 (10 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11082,11113,11117
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Hive.Slave/3.3/Manager/HeartbeatManager.cs
r9456 r11121 24 24 using System.Threading; 25 25 using HeuristicLab.Clients.Hive.SlaveCore.Properties; 26 using HeuristicLab.Common;27 26 28 27 namespace HeuristicLab.Clients.Hive.SlaveCore { … … 115 114 if (msgs == null) { 116 115 SlaveClientCom.Instance.LogMessage("Error getting response from HB"); 117 OnExceptionOccured(new Exception("Error getting response from HB"));118 116 } else { 119 117 SlaveClientCom.Instance.LogMessage("HB Response received (" + msgs.Count + "): "); … … 126 124 catch (Exception e) { 127 125 SlaveClientCom.Instance.LogMessage("Heartbeat thread failed: " + e.ToString()); 128 OnExceptionOccured(e);129 126 } 130 127 waitHandle.WaitOne(this.interval); … … 132 129 SlaveClientCom.Instance.LogMessage("Heartbeat thread stopped"); 133 130 } 134 135 #region Eventhandler136 public event EventHandler<EventArgs<Exception>> ExceptionOccured;137 private void OnExceptionOccured(Exception e) {138 var handler = ExceptionOccured;139 if (handler != null) handler(this, new EventArgs<Exception>(e));140 }141 #endregion142 131 } 143 132 }
Note: See TracChangeset
for help on using the changeset viewer.