Changeset 4772 for branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HiveWeb/App_Code/HiveServerModule.cs
- Timestamp:
- 11/11/10 15:30:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HiveWeb/App_Code/HiveServerModule.cs
r4755 r4772 9 9 using HeuristicLab.Hive.Contracts.Interfaces; 10 10 using HeuristicLab.PluginInfrastructure; 11 using HeuristicLab.PluginInfrastructure.Manager; 11 12 12 13 namespace HeuristicLab.Hive.Server.Core.IISModules { … … 14 15 private static object locker = new object(); 15 16 private static ILifecycleManager lifecycleManager; 16 17 private static PluginManager pm; 18 17 19 public void Init(HttpApplication context) { 18 20 lock (locker) { 19 if(lifecycleManager == null) lifecycleManager = ServiceLocator.GetLifecycleManager(); 20 lifecycleManager.Start(); 21 if (lifecycleManager == null) { 22 pm = new PluginManager(@"C:\ch\SVN\branches\HeuristicLab.Hive\sources\HeuristicLab.Hive\HiveWeb\App_Data\Plugins\"); 23 pm.DiscoverAndCheckPlugins(); 24 pm.InitializeLifetimeService(); 25 26 lifecycleManager = ServiceLocator.GetLifecycleManager(); 27 lifecycleManager.Plugins = pm.Plugins; 28 lifecycleManager.Start(); 29 } 21 30 } 22 31 }
Note: See TracChangeset
for help on using the changeset viewer.