public void RunConsole(string[] args) { ConsoleTool.CreateConsole(); Console.WriteLine("Service running ... press <ENTER> to stop"); this.OnStart(args); Console.ReadLine(); ConsoleTool.FreeConsole(); this.OnStop(); }