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/BusinessObjects/UpTimeStatisticsDto.cs

    r4424 r4755  
    2424using HeuristicLab.DataAccess;
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HeuristicLab.Common;
    2627
    2728namespace HeuristicLab.Hive.Contracts.BusinessObjects {
     
    4041    public DateTime Logout { get; set; }
    4142
    42     public override Common.IDeepCloneable Clone(Common.Cloner cloner) {
    43       UpTimeStatisticsDto clone = (UpTimeStatisticsDto) base.Clone(cloner);
    44       clone.Slave = (SlaveDto)cloner.Clone(this.Slave);
    45       clone.Login = this.Login;
    46       clone.Logout = this.Logout;
    47       return clone;
     43    public UpTimeStatisticsDto() { }
     44    [StorableConstructor]
     45    protected UpTimeStatisticsDto(bool deserializing) : base(deserializing) { }
     46    protected UpTimeStatisticsDto(UpTimeStatisticsDto original, Cloner cloner)
     47      : base(original, cloner) {
     48      this.Slave = cloner.Clone(original.Slave);
     49      this.Login = original.Login;
     50      this.Logout = original.Logout;
     51    }
     52    public override IDeepCloneable Clone(Cloner cloner) {
     53      return new UpTimeStatisticsDto(this, cloner);
    4854    }
    4955  }
Note: See TracChangeset for help on using the changeset viewer.