Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/19 23:48:36 (5 years ago)
Author:
abeham
Message:

#2521: Added context lookup parameter

  • Refactored tests
  • Fixed duplicate GUID
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Operators/3.3/Operator.cs

    r17226 r17254  
    2424using System.Linq;
    2525using System.Threading;
     26using HEAL.Attic;
    2627using HeuristicLab.Common;
    2728using HeuristicLab.Core;
    28 using HEAL.Attic;
    2929
    3030namespace HeuristicLab.Operators {
     
    119119        ExecutionContext = context;
    120120        this.cancellationToken = cancellationToken;
    121         foreach (ILookupParameter param in Parameters.OfType<ILookupParameter>())
     121        foreach (var param in Parameters.OfType<ILookupParameter>())
     122          param.ExecutionContext = context;
     123        foreach (var param in Parameters.OfType<IContextLookupParameter>())
    122124          param.ExecutionContext = context;
    123125        IOperation next = Apply();
     
    126128      }
    127129      finally {
    128         foreach (ILookupParameter param in Parameters.OfType<ILookupParameter>())
     130        foreach (var param in Parameters.OfType<ILookupParameter>())
     131          param.ExecutionContext = null;
     132        foreach (var param in Parameters.OfType<IContextLookupParameter>())
    129133          param.ExecutionContext = null;
    130134        ExecutionContext = null;
Note: See TracChangeset for help on using the changeset viewer.