Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/12/10 10:57:21 (14 years ago)
Author:
kgrading
Message:

changed the complete DAL to LINQ 2 SQL (with the exception of the job streaming), did a lot of refactoring, Introduced DTOs (that are named DTOs for better understanding), added the spring.NET Interceptor, reintroduced transactions and cleaned up the whole JobResult thing and updated a part of the config merger (#830)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/ConfigurationManager/ConfigManager.cs

    r2846 r3011  
    4747
    4848    public Core Core { get; set; }   
    49     private ClientInfo hardwareInfo;       
     49    private ClientDto hardwareInfo;       
    5050
    5151    /// <summary>
     
    5353    /// </summary>
    5454    private ConfigManager() {     
    55       hardwareInfo = new ClientInfo();
     55      hardwareInfo = new ClientDto();
    5656
    5757      if (Settings.Default.Guid == Guid.Empty) {
     
    7171    /// </summary>
    7272    /// <returns>the ClientInfo object</returns>
    73     public ClientInfo GetClientInfo() {
     73    public ClientDto GetClientInfo() {
    7474      hardwareInfo.Login = WcfService.Instance.ConnectedSince;
    7575      return hardwareInfo;         
     
    139139    public int GetUsedCores() {
    140140      Dictionary<Guid, Executor> engines = Core.GetExecutionEngines();
    141       Dictionary<Guid, Job> jobs = Core.GetJobs();
     141      Dictionary<Guid, JobDto> jobs = Core.GetJobs();
    142142      int usedCores = 0;
    143143      lock (engines) {       
    144         foreach (KeyValuePair<Guid, Job> kvp in jobs)
     144        foreach (KeyValuePair<Guid, JobDto> kvp in jobs)
    145145          usedCores += kvp.Value.CoresNeeded;
    146146      }
Note: See TracChangeset for help on using the changeset viewer.