Exemplo n.º 1
0
 public CommandThread(
     ThreadSupervisor InSupervisor, TelnetConnection InConn,
     TelnetCommandRoute InCommandRoute,
     RunLogListBox InRunLog)
 {
     mShutdownFlag = new ExtendedManualResetEvent(false);
     mConn         = InConn;
     mCommandRoute = InCommandRoute;
     mRunLog       = InRunLog;
     Supervisor    = InSupervisor;
 }
Exemplo n.º 2
0
        // ----------------------------- RunCommand ------------------------------------
        public static void RunCommand(
            ThreadSupervisor InSupervisor,
            TelnetConnection InConn, TelnetCommandRoute InCommandRoute,
            RunLogListBox InRunLog,
            string InCmdText)
        {
            {
                RunLogListBox runLog = new RunLogListBox(InRunLog, "RunCommand");
                CommandThread ct     = new CommandThread(
                    InSupervisor, InConn, InCommandRoute, InRunLog);
                ct.CommandText = InCmdText;

                // run the logout thread.
                CommandThread.ThreadStart(ct);
            }
        }