Changeset 840 for trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
- Timestamp:
- 11/27/08 15:58:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r830 r840 146 146 JobResult jobResult = new JobResult { JobId = jId, Result = sJob, Client = null }; 147 147 clientCommunicator.SendJobResultAsync(jobResult, true); 148 149 AppDomain.Unload(appDomains[jId]);150 appDomains.Remove(jId);151 engines.Remove(jId);152 Status.CurrentJobs--;153 Debug.WriteLine("Decrement CurrentJobs to:" + Status.CurrentJobs.ToString());154 155 148 } 156 149 … … 182 175 } 183 176 184 void ClientCommunicator_SendJobResultCompleted(object sender, SendJobResultCompletedEventArgs e) { 185 // TODO Removing of the Engines & AppDomains should happen here, not in the GetFinishedJob Method. 177 void ClientCommunicator_SendJobResultCompleted(object sender, SendJobResultCompletedEventArgs e) { 178 if (e.Result.Success) { 179 AppDomain.Unload(appDomains[e.Result.JobId]); 180 appDomains.Remove(e.Result.JobId); 181 engines.Remove(e.Result.JobId); 182 Status.CurrentJobs--; 183 Debug.WriteLine("Decrement CurrentJobs to:" + Status.CurrentJobs.ToString()); 184 } else { 185 Debug.WriteLine("Job sending FAILED!"); 186 } 186 187 } 187 188 }
Note: See TracChangeset
for help on using the changeset viewer.