source: branches/thasling/DistributedGA/DistributedGA.Hive/Program.cs @ 13555

Last change on this file since 13555 was 13555, checked in by thasling, 5 years ago

cleanup on contact server now works correct
included "hive-startup-project" to solution

File size: 834 bytes
Line 
1using System;
2using System.ServiceModel;
3using HeuristicLab.Clients.Hive;
4namespace DistributedGA.Hive {
5  class Program {
6    const string HIVESERVICEURI = @"http://services.heuristiclab.com/Hive-3.3/HiveService.svc";
7
8    static void Main(string[] args) {
9      var client = CreateHiveClient();
10      var myJob = CreateJob();
11      client.AddJob(myJob);
12    }
13
14    private static IHiveService CreateHiveClient() {
15      var binding = new WSHttpBinding();
16      var endpoint = new EndpointAddress(HIVESERVICEURI);
17      var myChannelFactory = new ChannelFactory<IHiveService>(binding, endpoint);
18
19      IHiveService client = null;
20      client = myChannelFactory.CreateChannel();
21      return client;
22    }
23
24    private static Job CreateJob() {
25      throw new NotImplementedException();
26    }
27  }
28
29}
Note: See TracBrowser for help on using the repository browser.