Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12959


Ignore:
Timestamp:
09/21/15 13:21:59 (9 years ago)
Author:
ascheibe
Message:

#2355 added backwards compatibility to task in the service

Location:
trunk/sources/HeuristicLab.Services.Hive/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.Hive/3.3/Converter.cs

    r12926 r12959  
    4646        PluginsNeededIds = source.RequiredPlugins.Select(x => x.PluginId).ToList(),
    4747        StateLog = source.StateLogs.Select(x => x.ToDto()).OrderBy(x => x.DateTime).ToList(),
    48         LastTaskDataUpdate = source.JobData == null ? DateTime.MinValue : source.JobData.LastUpdate
     48        LastTaskDataUpdate = source.JobData == null ? DateTime.MinValue : source.JobData.LastUpdate,
     49        IsPrivileged = true
    4950      };
    5051    }
  • trunk/sources/HeuristicLab.Services.Hive/3.3/DataTransfer/Task.cs

    r12926 r12959  
    4444    [DataMember]
    4545    public Guid JobId { get; set; }
     46    // BackwardsCompatibility3.3
     47    #region Backwards compatible code, remove with 3.4
     48    [DataMember]
     49    public bool IsPrivileged { get; set; }
     50    #endregion
    4651
    4752    public Task() {
    48       this.PluginsNeededIds = new List<Guid>();
     53      PluginsNeededIds = new List<Guid>();
     54      IsPrivileged = true;
    4955    }
    5056  }
Note: See TracChangeset for help on using the changeset viewer.