Example #1
0
 static void Main()
 {
     if (!Environment.UserInteractive)
     {
         ServiceBase.Run(new Service1());
     }
     else
     {
         Bootstrap.Initialize();
         Bootstrap.Start();
         Console.WriteLine("Press Enter to exit...");
         Console.ReadLine();
     }
 }
Example #2
0
 public Service1()
 {
     InitializeComponent();
     Bootstrap.Initialize();
 }