Beispiel #1
0
 static void Main()
 {
     if (!Environment.UserInteractive)
     {
         ServiceBase[] ServicesToRun;
         ServicesToRun = new ServiceBase[]
         {
             new Service()
         };
         ServiceBase.Run(ServicesToRun);
     }
     else
     {
         TransactionServiceInstaller transactionServiceInstaller = new TransactionServiceInstaller();
         Console.WriteLine("TransactionService Started...");
         Console.ReadKey();
     }
 }
Beispiel #2
0
 protected override void OnStart(string[] args)
 {
     TransactionServiceInstaller transactionServiceInstaller = new TransactionServiceInstaller();
 }