Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     if (!Environment.UserInteractive)
     {
         ServiceBase.Run(new Service1());
     }
     else
     {
         var bot = new IRCBot();
         new Thread(new ThreadStart(bot.Start)).Start();
         Console.ReadLine();
         bot.Stop();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     if (!Environment.UserInteractive)
     {
         ServiceBase.Run(new Service1());
     }
     else
     {
         var bot = new IRCBot();
         new Thread(new ThreadStart(bot.Start)).Start();
         Console.ReadLine();
         bot.Stop();
     }
 }