Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/09/10 15:18:53 (13 years ago)
Author:
cneumuel
Message:

#1260

  • applied new cloning mechanism
  • changed role names
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponseObjects/ResponseResultReceived.cs

    r4424 r4755  
    2323using System.Runtime.Serialization;
    2424using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HeuristicLab.Common;
    2526
    2627namespace HeuristicLab.Hive.Contracts.ResponseObjects {
     
    3637    public bool Finished { get; set; }
    3738
    38     public override Common.IDeepCloneable Clone(Common.Cloner cloner) {
    39       ResponseResultReceived clone = (ResponseResultReceived) base.Clone(cloner);
    40       clone.Finished = this.Finished;
    41       clone.JobId = this.JobId;
    42       return clone;
     39    public ResponseResultReceived() { }
     40    [StorableConstructor]
     41    protected ResponseResultReceived(bool deserializing) : base(deserializing) { }
     42    protected ResponseResultReceived(ResponseResultReceived original, Cloner cloner)
     43      : base(original, cloner) {
     44      this.Finished = original.Finished;
     45      this.JobId = original.JobId;
     46    }
     47    public override IDeepCloneable Clone(Cloner cloner) {
     48      return new ResponseResultReceived(this, cloner);
    4349    }
    4450  }
Note: See TracChangeset for help on using the changeset viewer.