Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Hive.Client.Core/ConfigurationManager.cs @ 762

Last change on this file since 762 was 742, checked in by kgrading, 16 years ago

Implemented a first version of the job (#356)

File size: 945 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace HeuristicLab.Hive.Client.Core {
7  /// <summary>
8  /// accesses the Server and sends his data (uuid, uptimes, hardware config)
9  /// </summary>
10  public class ConfigurationManager {
11    private static ConfigurationManager instance = null;
12    private Guid guid;
13
14    public static ConfigurationManager GetInstance() {
15      if (instance == null) {
16        instance = new ConfigurationManager();
17      }
18      return instance;
19    }
20
21    /// <summary>
22    /// Constructor for the singleton, must recover Guid, Calendar, ...
23    /// </summary>
24    private ConfigurationManager() {
25      //retrive GUID from XML file, or burn in hell. as in hell. not heaven.
26      //this won't work this way. We need a plugin for XML Handling.
27      guid = Guid.NewGuid();
28    }
29
30    public void Connect(Guid guid) {
31    }
32
33  }
34}
Note: See TracBrowser for help on using the repository browser.