We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ae8e1b commit 0c85021Copy full SHA for 0c85021
Program.cs
@@ -377,7 +377,7 @@ private static void Activation()
377
if (sc.Status == ServiceControllerStatus.Running)
378
{
379
sc.Stop();
380
- sc.WaitForStatus(ServiceControllerStatus.Stopped, new(0, 1, 0));
+ sc.WaitForStatus(ServiceControllerStatus.Stopped, new(1, 0, 0));
381
Console.WriteLine("正在停止服务");
382
}
383
sc.Close();
@@ -423,7 +423,7 @@ private static void Activation()
423
if (sc.Status == ServiceControllerStatus.Stopped)
424
425
sc.Start();
426
- sc.WaitForStatus(ServiceControllerStatus.Running,new(0,1,0));
+ sc.WaitForStatus(ServiceControllerStatus.Running,new(1,0,0));
427
Console.WriteLine("正在启动服务");
428
429
0 commit comments