Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
            }
        }
Ejemplo n.º 3
0
 public static void ExitWindows(RestartOptions how, bool force, AfterExitWindowsHandler after)
 {
     _exitWindows(how, force, after);
 }
Ejemplo n.º 4
0
 /// <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);
 }
Ejemplo n.º 5
0
 public static void ExitWindows(RestartOptions how, bool force, AfterExitWindowsHandler after)
 {
     _exitWindows(how, force, after);
 }
Ejemplo n.º 6
0
 /// <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);
 }