コード例 #1
0
 public static void ServiceStart()
 {
     ReplicatorThread.Start();
     if (Environment.UserInteractive)
     {
         Console.WriteLine("send \"exit\" to quit:");
         while (true)
         {
             var texto = Console.ReadLine();
             if (texto == "exit")
             {
                 ReplicatorThread.Stop();
                 break;
             }
         }
     }
 }
コード例 #2
0
 public static void ServiceStop()
 {
     ReplicatorThread.Stop();
 }