Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/25/16 16:48:19 (9 years ago)
Author:
jlodewyc
Message:

#2582 RC2 migration fixed. OKB query implemented. Preparing for OKB manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.PluginInfrastructure/3.3/ApplicationManager.cs

    r13689 r13860  
    2121
    2222using HeuristicLab.PluginInfrastructure.Manager;
    23 using System;
    2423
    25 namespace HeuristicLab.PluginInfrastructure {
     24namespace HeuristicLab.PluginInfrastructure
     25{
    2626
    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;
    3334
    3435
     
    3738            DefaultApplicationManager applicationManager = new DefaultApplicationManager();
    3839            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");
    4041            manager.DiscoverAndCheckPlugins();
    4142            applicationManager.PrepareApplicationDomain(manager.Applications, manager.Plugins);
     
    4546        /// Gets the application manager singleton.
    4647        /// </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        }
    5369    }
    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   }
    6570}
Note: See TracChangeset for help on using the changeset viewer.