Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 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.DebugEngine/3.3/DebugEngine.cs

    r14185 r14927  
    2626using HeuristicLab.Common;
    2727using HeuristicLab.Core;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HeuristicLab.Persistence;
    2929
    3030namespace HeuristicLab.DebugEngine {
    3131
    32   [StorableClass]
     32  [StorableType("671a070c-deca-445a-af74-2249f4825739")]
    3333  [Item("Debug Engine", "Engine for debugging algorithms.")]
    3434  public class DebugEngine : Executable, IEngine {
     
    161161        while (skipStackOperations && !(CurrentOperation is IAtomicOperation) && CanContinue)
    162162          ProcessNextOperation(true, cancellationTokenSource.Token);
    163       }
    164       catch (Exception ex) {
     163      } catch (Exception ex) {
    165164        OnExceptionOccurred(ex);
    166165      }
     
    182181        try {
    183182          t.Wait();
    184         }
    185         catch (AggregateException ex) {
     183        } catch (AggregateException ex) {
    186184          try {
    187185            ex.Flatten().Handle(x => x is OperationCanceledException);
    188           }
    189           catch (AggregateException remaining) {
     186          } catch (AggregateException remaining) {
    190187            if (remaining.InnerExceptions.Count == 1) OnExceptionOccurred(remaining.InnerExceptions[0]);
    191188            else OnExceptionOccurred(remaining);
     
    250247          ProcessNextOperation(false, cancellationToken);
    251248        cancellationToken.ThrowIfCancellationRequested();
    252       }
    253       finally {
     249      } finally {
    254250        timer.Stop();
    255251        ExecutionTime += DateTime.UtcNow - lastUpdateTime;
     
    317313          }
    318314          CurrentOperation = null;
    319         }
    320         catch (Exception ex) {
     315        } catch (Exception ex) {
    321316          if (ex is OperationCanceledException) throw ex;
    322317          else throw new OperatorExecutionException(operation.Operator, ex);
Note: See TracChangeset for help on using the changeset viewer.