Changeset 6945 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient/3.3/Program.cs
- Timestamp:
- 11/02/11 18:42:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient/3.3/Program.cs
r6744 r6945 21 21 22 22 using System; 23 using System.Diagnostics; 23 24 using System.Threading; 24 25 … … 26 27 public class Program { 27 28 static void Main(string[] args) { 29 EventLog eventLog = null; 30 try { 31 if (!System.Diagnostics.EventLog.SourceExists("HLHive")) { 32 System.Diagnostics.EventLog.CreateEventSource("HLHive", "HiveSlave"); 33 } 34 eventLog = new EventLog(); 35 eventLog.Source = "HLHive"; 36 eventLog.Log = "HiveSlave"; 37 } 38 catch (Exception) { } 39 28 40 //slave part 29 41 Core core = new Core(); 42 core.ServiceEventLog = eventLog; 30 43 Console.WriteLine("Starting core ..."); 31 44 Thread coreThread = new Thread(core.Start);
Note: See TracChangeset
for help on using the changeset viewer.