/// <summary> /// Default ExitWindows. Kicks off a thread which handles t /// </summary> /// <param name="how"></param> /// <param name="force"></param> /// <returns></returns> protected static void ExitWindowsDefault(RestartOptions how, bool force, AfterExitWindowsHandler after) { ExitWindowsDefaultEnv env = new ExitWindowsDefaultEnv(); env.how = how; env.force = force; env.after = after; Thread exitWinThread = new Thread(ExitWindowsDefaultThread); exitWinThread.Name = "WinController exit thread"; exitWinThread.Start(env); }
/// <summary> /// Default ExitWindows. Kicks off a thread which handles t /// </summary> /// <param name="how"></param> /// <param name="force"></param> /// <returns></returns> protected static void ExitWindowsDefault(RestartOptions how, bool force, AfterExitWindowsHandler after) { ExitWindowsDefaultEnv env = new ExitWindowsDefaultEnv(); env.how = how; env.force = force; env.after = after; // If restart is Hibernate or Suspend then do is async if (how == RestartOptions.Hibernate || how == RestartOptions.Suspend) { (new Thread(ExitWindowsDefaultThread)).Start(env); } else { ExitWindowsDefaultThread(env); } }
public static void ExitWindows(RestartOptions how, bool force, AfterExitWindowsHandler after) { _exitWindows(how, force, after); }
/// <summary> /// Default ExitWindows. Kicks off a thread which handles t /// </summary> /// <param name="how"></param> /// <param name="force"></param> /// <returns></returns> protected static void ExitWindowsDefault(RestartOptions how, bool force, AfterExitWindowsHandler after) { ExitWindowsDefaultEnv env = new ExitWindowsDefaultEnv(); env.how = how; env.force = force; env.after = after; // If restart is Hibernate or Suspend then do is async if (how == RestartOptions.Hibernate || how == RestartOptions.Suspend) (new Thread(ExitWindowsDefaultThread)).Start(env); else ExitWindowsDefaultThread(env); }