コード例 #1
0
 public static void Stop()
 {
     Process.Start(ShutdownProcess.process(command, "-a"));
     Log.Information("Shutdown aborted.");
 }
コード例 #2
0
 public void Start()
 {
     Process.Start(ShutdownProcess.process(command, parameters()));
     Log.Information($"Shutdown scheduled for {targetTime}.");
 }