- Timestamp:
- 11/27/08 16:34:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/ConfigurationManager.cs
r770 r841 24 24 using System.Linq; 25 25 using System.Text; 26 using HeuristicLab.Hive.Contracts.BusinessObjects; 26 27 27 28 namespace HeuristicLab.Hive.Client.Core { … … 31 32 public class ConfigurationManager { 32 33 private static ConfigurationManager instance = null; 34 35 private ClientInfo clientInfo; 33 36 private Guid guid; 34 37 … … 47 50 //this won't work this way. We need a plugin for XML Handling. 48 51 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; 49 68 } 50 69
Note: See TracChangeset
for help on using the changeset viewer.