Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 |
|
---|
6 | namespace 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.