Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Hive.Client.Core/ClientConsoleService/ClientConsoleCommunicator.cs @ 950

Last change on this file since 950 was 944, checked in by kgrading, 16 years ago

finished implementation for #425

File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Hive.Client.Core.ClientConsoleService.Interfaces;
6using HeuristicLab.Hive.Client.Core.ConfigurationManager;
7using HeuristicLab.Hive.Client.Communication;
8
9namespace HeuristicLab.Hive.Client.Core.ClientConsoleService {
10  public class ClientConsoleCommunicator: IClientConsoleCommunicator {
11    #region IClientConsoleCommunicator Members
12
13    public StatusCommons GetStatusInfos() {
14      return ConfigManager.Instance.GetStatusForClientConsole();
15    }
16
17    public ConnectionContainer GetConnection() {
18      return new ConnectionContainer{IPAdress = WcfService.Instance.ServerIP, Port = WcfService.Instance.ServerPort } ;
19    }
20
21    public void SetConnection(ConnectionContainer container) {
22      ConfigManager.Instance.SetServerIPAndPort(container);
23      WcfService.Instance.Connect(container.IPAdress, container.Port);
24    }
25
26    public void Disconnect() {
27      WcfService.Instance.Disconnect();
28    }
29
30    #endregion
31  }
32}
Note: See TracBrowser for help on using the repository browser.