- Timestamp:
- 05/04/17 17:19:35 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Core/3.3/Engine.cs
r14185 r14927 25 25 using System.Threading.Tasks; 26 26 using HeuristicLab.Common; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Core { 30 30 [Item("Engine", "A base class for engines.")] 31 [Storable Class]31 [StorableType("fd2385ca-79e8-496e-bd12-4925d4b3cd1a")] 32 32 public abstract class Engine : Executable, IEngine { 33 33 [Storable] … … 90 90 try { 91 91 t.Wait(); 92 } 93 catch (AggregateException ex) { 92 } catch (AggregateException ex) { 94 93 try { 95 94 ex.Flatten().Handle(x => x is OperationCanceledException); 96 } 97 catch (AggregateException remaining) { 95 } catch (AggregateException remaining) { 98 96 if (remaining.InnerExceptions.Count == 1) OnExceptionOccurred(remaining.InnerExceptions[0]); 99 97 else OnExceptionOccurred(remaining); … … 152 150 try { 153 151 Run(cancellationToken); 154 } 155 finally { 152 } finally { 156 153 timer.Elapsed -= new System.Timers.ElapsedEventHandler(timer_Elapsed); 157 154 timer.Stop();
Note: See TracChangeset
for help on using the changeset viewer.