Last change
on this file since 13554 was
13541,
checked in by thasling, 9 years ago
|
added new empty project for test on hive
changed scheme for ip determination
changed handling of queues in messagehandler
|
File size:
836 bytes
|
Line | |
---|
1 |
|
---|
2 | using System;
|
---|
3 | using System.ServiceModel;
|
---|
4 | using HeuristicLab.Clients.Hive;
|
---|
5 | namespace DistributedGA.Hive {
|
---|
6 | class Program {
|
---|
7 | const string HIVESERVICEURI = @"http://services.heuristiclab.com/Hive-3.3/HiveService.svc";
|
---|
8 |
|
---|
9 | static void Main(string[] args) {
|
---|
10 | var client = CreateHiveClient();
|
---|
11 | var myJob = CreateJob();
|
---|
12 | client.AddJob(myJob);
|
---|
13 | }
|
---|
14 |
|
---|
15 | private static IHiveService CreateHiveClient() {
|
---|
16 | var binding = new WSHttpBinding();
|
---|
17 | var endpoint = new EndpointAddress(HIVESERVICEURI);
|
---|
18 | var myChannelFactory = new ChannelFactory<IHiveService>(binding, endpoint);
|
---|
19 |
|
---|
20 | IHiveService client = null;
|
---|
21 | client = myChannelFactory.CreateChannel();
|
---|
22 | return client;
|
---|
23 | }
|
---|
24 |
|
---|
25 | private static Job CreateJob() {
|
---|
26 | throw new NotImplementedException();
|
---|
27 | }
|
---|
28 | }
|
---|
29 |
|
---|
30 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.