Changeset 5780 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.SlaveWindowsService
- Timestamp:
- 03/21/11 17:58:29 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.SlaveWindowsService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.SlaveWindowsService/ProjectInstaller.cs
r5599 r5780 1 1 using System; 2 2 using System.Collections; 3 using System.Collections.Generic;4 3 using System.ComponentModel; 5 using System.Configuration.Install; 6 using System.Linq; 4 using System.ServiceProcess; 7 5 8 6 … … 13 11 InitializeComponent(); 14 12 } 13 14 protected override void OnAfterInstall(IDictionary savedState) { 15 base.OnAfterInstall(savedState); 16 17 //try to start the service after installation 18 using (var serviceController = new ServiceController(this.serviceInstaller1.ServiceName, Environment.MachineName)) { 19 try { 20 serviceController.Start(); 21 } 22 catch { } 23 } 24 } 15 25 } 16 26 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.SlaveWindowsService/SlaveWindowsService.cs
r5621 r5780 43 43 protected override void OnStart(string[] args) { 44 44 core = new Core(); 45 core.ServiceEventLog = eventLog; 45 46 coreThread = new Thread(core.Start); 46 47 coreThread.Start();
Note: See TracChangeset
for help on using the changeset viewer.