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.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs

    r14877 r14927  
    3232using HeuristicLab.Optimization;
    3333using HeuristicLab.Parameters;
    34 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     34using HeuristicLab.Persistence;
    3535
    3636namespace HeuristicLab.Problems.ExternalEvaluation {
    3737  [Item("External Evaluation Problem (single-objective)", "A problem that is evaluated in a different process.")]
    3838  [Creatable(CreatableAttribute.Categories.ExternalEvaluationProblems, Priority = 100)]
    39   [StorableClass]
     39  [StorableType("2f87216f-3877-4577-8a10-435cb16bbb8a")]
    4040  // BackwardsCompatibility3.3
    4141  // Rename class to SingleObjectiveExternalEvaluationProblem
     
    158158      try {
    159159        return client.Evaluate(message, GetQualityMessageExtensions());
    160       }
    161       finally {
     160      } finally {
    162161        lock (clientLock) {
    163162          activeClients.Remove(client);
     
    174173          try {
    175174            MessageBuilder.AddToMessage(variable.Value, variable.Key, protobufBuilder);
    176           }
    177           catch (ArgumentException ex) {
     175          } catch (ArgumentException ex) {
    178176            throw new InvalidOperationException(string.Format("ERROR while building solution message: Parameter {0} cannot be added to the message", Name), ex);
    179177          }
Note: See TracChangeset for help on using the changeset viewer.