- Timestamp:
- 03/06/09 14:21:11 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/ServiceLocator.cs
r1099 r1272 25 25 using HeuristicLab.Hive.Contracts.Interfaces; 26 26 using HeuristicLab.Hive.Server.Core; 27 using HeuristicLab.Hive.Server.Core.InternalInterfaces; 27 28 28 29 /// <summary> … … 61 62 private static IJobResultsAdapter jobResultsAdapter = null; 62 63 64 private static IScheduler scheduler = null; 65 63 66 64 67 /// <summary> … … 239 242 return jobResultsAdapter; 240 243 } 244 245 /// <summary> 246 /// Gets the scheduler 247 /// </summary> 248 /// <returns></returns> 249 [MethodImpl(MethodImplOptions.Synchronized)] 250 public static IScheduler GetScheduler() { 251 if (scheduler == null) { 252 scheduler = discoveryService.GetInstances<IScheduler>()[0]; 253 } 254 255 return scheduler; 256 } 241 257 }
Note: See TracChangeset
for help on using the changeset viewer.