Changeset 6110 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests/Mocks
- Timestamp:
- 05/03/11 17:08:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests/Mocks/MockJob.cs
r5599 r6110 122 122 Stopwatch watch = new Stopwatch(); 123 123 watch.Start(); 124 OnJobStarted(); 124 125 do { 125 126 Thread.SpinWait(1000); … … 191 192 } 192 193 194 public event EventHandler JobStarted; 195 protected virtual void OnJobStarted() { 196 EventHandler handler = JobStarted; 197 if (handler != null) handler(this, EventArgs.Empty); 198 } 199 193 200 public event EventHandler JobFailed; 194 201 protected virtual void OnJobFailed(Exception e) { … … 210 217 } 211 218 #endregion 219 212 220 } 213 221 }
Note: See TracChangeset
for help on using the changeset viewer.