Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/16 12:56:12 (9 years ago)
Author:
jlodewyc
Message:

#2582 Implemented uploading

File:
1 edited

Legend:

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

    r12012 r13689  
    2020#endregion
    2121
     22using HeuristicLab.PluginInfrastructure.Manager;
    2223using System;
    2324
     
    3132    private static IApplicationManager appManager;
    3233
    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 {
    3748      get {
    3849        if (appManager == null)
     
    4758    /// <param name="manager"></param>
    4859    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 ){
    5161        appManager = manager;
    5262      }
Note: See TracChangeset for help on using the changeset viewer.