Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (8 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Core/3.3/Engine.cs

    r14185 r14927  
    2525using System.Threading.Tasks;
    2626using HeuristicLab.Common;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Persistence;
    2828
    2929namespace HeuristicLab.Core {
    3030  [Item("Engine", "A base class for engines.")]
    31   [StorableClass]
     31  [StorableType("fd2385ca-79e8-496e-bd12-4925d4b3cd1a")]
    3232  public abstract class Engine : Executable, IEngine {
    3333    [Storable]
     
    9090        try {
    9191          t.Wait();
    92         }
    93         catch (AggregateException ex) {
     92        } catch (AggregateException ex) {
    9493          try {
    9594            ex.Flatten().Handle(x => x is OperationCanceledException);
    96           }
    97           catch (AggregateException remaining) {
     95          } catch (AggregateException remaining) {
    9896            if (remaining.InnerExceptions.Count == 1) OnExceptionOccurred(remaining.InnerExceptions[0]);
    9997            else OnExceptionOccurred(remaining);
     
    152150      try {
    153151        Run(cancellationToken);
    154       }
    155       finally {
     152      } finally {
    156153        timer.Elapsed -= new System.Timers.ElapsedEventHandler(timer_Elapsed);
    157154        timer.Stop();
Note: See TracChangeset for help on using the changeset viewer.