Exemple #1
0
 //-----------------------------------------------------------------------------------------------------------------------------------------------------
 protected override void OnStart(string[] args)
 {
     _nodeHost = new NodeHost(Program.HostConfig, RegisterHostComponents);
     _nodeHost.LoadAndActivate();
 }
Exemple #2
0
        //-----------------------------------------------------------------------------------------------------------------------------------------------------
        private static void StartNodeHost()
        {
            _s_nodeHost = new NodeHost(_s_bootConfig, RegisterHostComponents);
            _s_nodeHost.LoadAndActivate();

            _s_stopRequested = new ManualResetEvent(initialState: false);
            System.Console.CancelKeyPress += Console_CancelKeyPress;
        }