- Timestamp:
- 05/25/16 16:48:19 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.PluginInfrastructure/3.3/ApplicationManager.cs
r13689 r13860 21 21 22 22 using HeuristicLab.PluginInfrastructure.Manager; 23 using System;24 23 25 namespace HeuristicLab.PluginInfrastructure { 24 namespace HeuristicLab.PluginInfrastructure 25 { 26 26 27 /// <summary> 28 /// The ApplicationManager has a reference to the application manager singleton. 29 /// </summary> 30 public static class ApplicationManager { 31 // the singleton instance is initialized to LightweightApplicationManager as long as no other application manager is registered 32 private static IApplicationManager appManager; 27 /// <summary> 28 /// The ApplicationManager has a reference to the application manager singleton. 29 /// </summary> 30 public static class ApplicationManager 31 { 32 // the singleton instance is initialized to LightweightApplicationManager as long as no other application manager is registered 33 private static IApplicationManager appManager; 33 34 34 35 … … 37 38 DefaultApplicationManager applicationManager = new DefaultApplicationManager(); 38 39 appManager = applicationManager; 39 PluginManager manager = new PluginManager(@"C:\HeuristicSVN\ artifacts\bin\HeuristicLab.Clients.Hive.WebJobManager");40 PluginManager manager = new PluginManager(@"C:\HeuristicSVN\HeuristicLab.Clients.Hive.WebJobManager\bin\Debug\dnx451\win7-x64"); 40 41 manager.DiscoverAndCheckPlugins(); 41 42 applicationManager.PrepareApplicationDomain(manager.Applications, manager.Plugins); … … 45 46 /// Gets the application manager singleton. 46 47 /// </summary> 47 public static IApplicationManager Manager { 48 get { 49 if (appManager == null) 50 appManager = new LightweightApplicationManager(); 51 return appManager; 52 } 48 public static IApplicationManager Manager 49 { 50 get 51 { 52 if (appManager == null) 53 appManager = new LightweightApplicationManager(); 54 return appManager; 55 } 56 } 57 58 /// <summary> 59 /// Registers a new application manager. 60 /// </summary> 61 /// <param name="manager"></param> 62 internal static void RegisterApplicationManager(IApplicationManager manager) 63 { 64 if (appManager != null) 65 { 66 appManager = manager; 67 } 68 } 53 69 } 54 55 /// <summary>56 /// Registers a new application manager.57 /// </summary>58 /// <param name="manager"></param>59 internal static void RegisterApplicationManager(IApplicationManager manager) {60 if (appManager != null ){61 appManager = manager;62 }63 }64 }65 70 }
Note: See TracChangeset
for help on using the changeset viewer.