static void Main(string[] args) { var service = new TcpService(); service.OnStartDebug(args); service.OnStopDebug(); }