//----------------------------------------------------------------------------------------------------------------------------------------------------- protected override void OnStart(string[] args) { _nodeHost = new NodeHost(Program.HostConfig, RegisterHostComponents); _nodeHost.LoadAndActivate(); }
//----------------------------------------------------------------------------------------------------------------------------------------------------- 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; }