- Timestamp:
- 01/07/09 16:15:51 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Client.Core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/ClientConsoleService/ClientConsoleCommunicator.cs
r1033 r1083 34 34 } 35 35 36 public void ShutdownClient() { 37 Core.ShutdownFlag = true; 38 } 39 36 40 #endregion 37 41 } -
trunk/sources/HeuristicLab.Hive.Client.Core/ClientConsoleService/Interfaces/IClientConsoleCommunicator.cs
r959 r1083 18 18 [OperationContract] 19 19 ConnectionContainer GetCurrentConnection(); 20 [OperationContract] 21 void ShutdownClient(); 20 22 } 21 23 } -
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r1081 r1083 51 51 public static Object Locker { get; set; } 52 52 53 public static bool ShutdownFlag { get; set; } 54 53 55 Dictionary<long, Executor> engines = new Dictionary<long, Executor>(); 54 56 Dictionary<long, AppDomain> appDomains = new Dictionary<long, AppDomain>(); … … 59 61 public void Start() { 60 62 Core.Locker = new Object(); 63 ShutdownFlag = false; 64 61 65 Logging.GetInstance().Info(this.ToString(), "Hive Client started"); 62 66 ClientConsoleServer server = new ClientConsoleServer(); … … 82 86 83 87 MessageQueue queue = MessageQueue.GetInstance(); 84 while ( true) {88 while (!ShutdownFlag) { 85 89 MessageContainer container = queue.GetMessage(); 86 90 Debug.WriteLine("Main loop received this message: " + container.Message.ToString()); … … 135 139 136 140 #region wcfService Events 137 138 void wcfService_ConnectionRestored(object sender, EventArgs e) {139 //Do some fancy new things here... e.g: check all appdomains if there are still active Jobs that need to be transmitted140 }141 141 142 142 void wcfService_LoginCompleted(object sender, LoginCompletedEventArgs e) { … … 201 201 } 202 202 203 void wcfService_ConnectionRestored(object sender, EventArgs e) { 204 //Do some fancy new things here... e.g: check all appdomains if there are still active Jobs that need to be transmitted 205 } 203 206 204 207 #endregion
Note: See TracChangeset
for help on using the changeset viewer.