Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/27/08 16:34:46 (16 years ago)
Author:
kgrading
Message:

implemented (#400)

File:
1 edited

Legend:

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

    r770 r841  
    2424using System.Linq;
    2525using System.Text;
     26using HeuristicLab.Hive.Contracts.BusinessObjects;
    2627
    2728namespace HeuristicLab.Hive.Client.Core {
     
    3132  public class ConfigurationManager {
    3233    private static ConfigurationManager instance = null;
     34
     35    private ClientInfo clientInfo;
    3336    private Guid guid;
    3437
     
    4750      //this won't work this way. We need a plugin for XML Handling.
    4851      guid = Guid.NewGuid();
     52      clientInfo = new ClientInfo();
     53      clientInfo.ClientId = Guid.NewGuid();
     54      clientInfo.NrOfCores = Environment.ProcessorCount;
     55      clientInfo.Memory = 1024;
     56      clientInfo.Name = Environment.MachineName;
     57    }
     58
     59    public ClientInfo GetClientInfo() {
     60      return clientInfo;         
     61    }
     62
     63    public void Loggedin() {
     64      if (clientInfo == null) {
     65        clientInfo = new ClientInfo();
     66      }
     67      clientInfo.Login = DateTime.Now;
    4968    }
    5069
Note: See TracChangeset for help on using the changeset viewer.