Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/SlaveConsoleService/SlaveConsoleServer.cs @ 4333

Last change on this file since 4333 was 4333, checked in by cneumuel, 14 years ago

added authorizationManager which checks for permission to specific jobs (#1168)

File size: 670 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.ServiceModel.Description;
6using System.ServiceModel;
7using HeuristicLab.PluginInfrastructure;
8using HeuristicLab.Hive.Slave.Core.SlaveConsoleService.Interfaces;
9using HeuristicLab.Hive.Contracts;
10
11namespace HeuristicLab.Hive.Slave.Core.SlaveConsoleService {
12  public class SlaveConsoleServer {
13    ServiceHost host = null;
14
15    public void Start() {
16      host = new ServiceHost(ApplicationManager.Manager.GetTypes(typeof(ISlaveConsoleCommunicator)).First());
17      host.Open();
18    }
19
20    public void Close() {
21      host.Close();
22    }
23  }
24}
Note: See TracBrowser for help on using the repository browser.