Ejemplo n.º 1
0
        public static void StartInConsole(string[] args)
        {
            var service = new BotService();

            service.OnStart(args);
            Console.WriteLine(@"Press any key to stop program");
            Console.Read();
            service.OnStop();
        }