Changeset 6369 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/HiveService.cs
- Timestamp:
- 06/06/11 17:49:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/HiveService.cs
r6367 r6369 317 317 return trans.UseTransaction(() => { 318 318 foreach (Guid guid in pluginIds) { 319 List<PluginData> pluginData = dao.GetPluginDatas(x => x.PluginId == guid).ToList(); 320 if (pluginData != null) { 321 pluginDatas.AddRange(pluginData); 322 } else { 323 //ignore ? 324 } 319 pluginDatas.AddRange(dao.GetPluginDatas(x => x.PluginId == guid).ToList()); 325 320 } 326 321 return pluginDatas; … … 420 415 421 416 public void TriggerLifecycle(bool force) { 422 // use a serializable transaction here to ensure not two threads execute this simultaniously ( lockingwould not work since IIS may use multiple AppDomains)417 // use a serializable transaction here to ensure not two threads execute this simultaniously (mutex-lock would not work since IIS may use multiple AppDomains) 423 418 trans.UseTransaction(() => { 424 419 DateTime lastCleanup = dao.GetLastCleanup(); … … 444 439 445 440 if (includeParent) jobs.Add(GetJob(parentJobId.Value)); 446 447 441 return jobs; 448 442 } 449 450 443 #endregion 451 444
Note: See TracChangeset
for help on using the changeset viewer.