Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/18/10 17:23:09 (14 years ago)
Author:
cneumuel
Message:

some small refactorings (#1159)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server/3.3/HeuristicLabHiveServerApplication.cs

    r4253 r4254  
    3030using HeuristicLab.Hive.Contracts.Interfaces;
    3131using HeuristicLab.PluginInfrastructure;
     32using HeuristicLab.Hive.Server.Core;
    3233
    3334namespace HeuristicLab.Hive.Server {
     
    162163      baseAddrDict.Add(STR_ExecutionEngineFacade, StartService(Services.ExecutionEngineFacade, addresses[index], WcfSettings.DEFAULTPORT));
    163164
    164       // [chn] why is lifecyclemanager instantiated here?? shouldnt Core.ServiceLocator be used?
    165       IEnumerable<ILifecycleManager> lifecycleManagers = ApplicationManager.Manager.GetInstances<ILifecycleManager>();
    166       if (lifecycleManagers.Count() > 0) {
    167         ILifecycleManager lifecycleManager = lifecycleManagers.First();
     165      ILifecycleManager lifecycleManager = ServiceLocator.GetLifecycleManager();
    168166
    169         lifecycleManager.Init();
     167      lifecycleManager.Init();
    170168
    171         // [chn] remove gui code here, how to display any response from server?
    172         Form mainForm = new MainForm(baseAddrDict);
    173         Application.Run(mainForm);
     169      Form mainForm = new MainForm(baseAddrDict);
     170      Application.Run();
    174171
    175         lifecycleManager.Shutdown();
    176       }
     172      lifecycleManager.Shutdown();
     173     
    177174      StopService(Services.All);
    178175    }
Note: See TracChangeset for help on using the changeset viewer.