Changeset 5588 for branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console
- Timestamp:
- 03/02/11 10:17:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/LogServiceReader.cs
r5093 r5588 2 2 using System.Collections.Generic; 3 3 using System.Linq; 4 using System.Text;5 4 using System.Windows.Forms; 6 using HeuristicLab.C ore;5 using HeuristicLab.Clients.Common; 7 6 using HeuristicLab.Hive.Slave.Console.SlaveConsoleService; 8 using HeuristicLab.Clients.Common;9 7 10 8 namespace HeuristicLab.Hive.Slave.Console { … … 24 22 } 25 23 26 void timer_Tick(object sender, EventArgs e) {24 private void timer_Tick(object sender, EventArgs e) { 27 25 try { 28 using (var slaveClient = ClientFactory.CreateClient<ISlaveConsoleCommunicator>("SlaveConsoleTcpEndpointClient")) { 26 using (var factory = ClientFactory.CreateChannelFactory<ISlaveConsoleCommunicator>("SlaveConsoleTcpEndpointClient")) { 27 var slaveClient = factory.Obj.CreateChannel(); 29 28 try { 30 var messages = slaveClient. Obj.GetLogMessages();29 var messages = slaveClient.GetLogMessages(); 31 30 if (messages.Count < messageCount) { 32 31 messageCount = 0; // log got cleared
Note: See TracChangeset
for help on using the changeset viewer.