Changeset 5095 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/ServiceLocator.cs
- Timestamp:
- 12/13/10 16:09:22 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources
- Property svn:ignore
-
old new 1 1 HeuristicLab.Hive-3.4.suo 2 2 TestResults 3 HeuristicLab.Hive 3.4.suo
-
- Property svn:ignore
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/ServiceLocator.cs
r5028 r5095 7 7 namespace HeuristicLab.Services.Hive { 8 8 9 public class ServiceLocator {10 private static ServiceLocator instance;11 public static ServiceLocator Instance {9 public class ServiceLocator : IServiceLocator { 10 private static IServiceLocator instance; 11 public static IServiceLocator Instance { 12 12 get { 13 13 if (instance == null) instance = new ServiceLocator(); 14 14 return instance; 15 15 } 16 set { instance = value; } 16 17 } 17 18 … … 40 41 } 41 42 42 private Hive hive;43 public Hive Hive{43 private ILifecycleManager lifecycleManager; 44 public ILifecycleManager LifecycleManager { 44 45 get { 45 if ( hive == null) hive = new Hive();46 return hive;46 if (lifecycleManager == null) lifecycleManager = new LifecycleManager(); 47 return lifecycleManager; 47 48 } 48 49 }
Note: See TracChangeset
for help on using the changeset viewer.