- Timestamp:
- 03/11/16 12:56:12 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.PluginInfrastructure/3.3/ApplicationManager.cs
r12012 r13689 20 20 #endregion 21 21 22 using HeuristicLab.PluginInfrastructure.Manager; 22 23 using System; 23 24 … … 31 32 private static IApplicationManager appManager; 32 33 33 /// <summary> 34 /// Gets the application manager singleton. 35 /// </summary> 36 public static IApplicationManager Manager { 34 35 public static void InitializeForWeb() 36 { 37 DefaultApplicationManager applicationManager = new DefaultApplicationManager(); 38 appManager = applicationManager; 39 PluginManager manager = new PluginManager(@"C:\HeuristicSVN\artifacts\bin\HeuristicLab.Clients.Hive.WebJobManager"); 40 manager.DiscoverAndCheckPlugins(); 41 applicationManager.PrepareApplicationDomain(manager.Applications, manager.Plugins); 42 } 43 44 /// <summary> 45 /// Gets the application manager singleton. 46 /// </summary> 47 public static IApplicationManager Manager { 37 48 get { 38 49 if (appManager == null) … … 47 58 /// <param name="manager"></param> 48 59 internal static void RegisterApplicationManager(IApplicationManager manager) { 49 if (appManager != null && !(appManager is LightweightApplicationManager)) throw new InvalidOperationException("The application manager has already been set."); 50 else { 60 if (appManager != null ){ 51 61 appManager = manager; 52 62 }
Note: See TracChangeset
for help on using the changeset viewer.