Changeset 9527 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive.SelfHost/3.3/Program.cs
- Timestamp:
- 05/24/13 15:12:40 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.SelfHost/3.3/Program.cs
r9434 r9527 21 21 22 22 using System; 23 using System.ServiceModel; 23 using System.Windows.Forms; 24 24 25 namespace 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()); 39 30 } 40 31 }
Note: See TracChangeset
for help on using the changeset viewer.