Changeset 4755 for branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/MessageContainerWithJob.cs
- Timestamp:
- 11/09/10 15:18:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/MessageContainerWithJob.cs
r4424 r4755 29 29 [Serializable] 30 30 public class MessageContainerWithJob : MessageContainer { 31 32 31 [Storable] 33 32 public SerializedJob SerializedJob { get; set; } 34 33 34 public MessageContainerWithJob() { } 35 35 public MessageContainerWithJob(MessageType message, Guid parentJobId, SerializedJob serializedJob) 36 36 : base(message, parentJobId) { 37 37 this.SerializedJob = serializedJob; 38 38 } 39 39 [StorableConstructor] 40 protected MessageContainerWithJob(bool deserializing) : base(deserializing) { } 41 protected MessageContainerWithJob(MessageContainerWithJob original, Cloner cloner) 42 : base(original, cloner) { 43 this.SerializedJob = cloner.Clone(original.SerializedJob); 44 } 40 45 public override IDeepCloneable Clone(Cloner cloner) { 41 MessageContainerWithJob clone = (MessageContainerWithJob)base.Clone(cloner); 42 clone.SerializedJob = (SerializedJob)cloner.Clone(this.SerializedJob); 43 return clone; 46 return new MessageContainerWithJob(this, cloner); 44 47 } 45 48 }
Note: See TracChangeset
for help on using the changeset viewer.