Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/24/13 15:12:40 (10 years ago)
Author:
pfleck
Message:

#2063
Provides a GUI for SelfHosting Hive-Service to start and stop the service.
Enables start and stop Janitor with adjustable frequency.
Run Cleanup and GenerateStatistics separately on click.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.SelfHost/3.3/Program.cs

    r9434 r9527  
    2121
    2222using System;
    23 using System.ServiceModel;
     23using System.Windows.Forms;
     24
    2425namespace HeuristicLab.Services.Hive.SelfHost {
    25   class Program {
    26     static void Main(string[] args) {
    27       var baseAdress = new Uri(@"http://localhost/Hive-3.3/HiveService.svc");
    28 
    29       using (var host = new ServiceHost(typeof(HiveService), baseAdress)) {
    30         host.Open();
    31 
    32         Console.WriteLine("Service is ready at {0}", baseAdress);
    33         Console.WriteLine("Press <Enter> to stop the service.");
    34 
    35         Console.ReadLine();
    36 
    37         host.Close();
    38       }
     26  internal class Program {
     27    [STAThread]
     28    private static void Main(string[] args) {
     29      Application.Run(new JanitorActivatorForm());
    3930    }
    4031  }
Note: See TracChangeset for help on using the changeset viewer.