예제 #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();
     }
 }
예제 #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();
     }
 }