Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.LifecycleClient/Program.cs @ 5593

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

#1233

  • changed the way lifecycle methods are called. The new service method TriggerLifecycle checks when the latest cleanup was made and performs one (if necessary). This can also be called by an external program (like a windows task)
  • robustified logging
File size: 483 bytes
Line 
1using HeuristicLab.Clients.Common;
2using HeuristicLab.Services.Hive.Common.ServiceContracts;
3
4namespace HeuristicLab.Clients.Hive.LifecycleClient {
5  class Program {
6    private static void Main(string[] args) {
7      using (var factory = ClientFactory.CreateChannelFactory<IHiveService>("wsHttpBinding_IHiveService", null, "hiveslave", "hiveslave")) {
8        IHiveService client = factory.Obj.CreateChannel();
9        client.TriggerLifecycle();
10      }
11    }
12  }
13}
Note: See TracBrowser for help on using the repository browser.