Esempio n. 1
0
 private void OnStop(object sender, EventArgs e)
 {
     procstarted = false;
     _spMre.Set();
     _stMre.Reset();
     ClientLoop.ConsoleOutput("\u001b[32mServer stopped\u001b[0m\r\n");
     try {
         Stopped();
     } catch (Exception ex) {
         Logger.Log("Exception occured invoking Stopped in Server.\r\n" + ex, false);
     }
 }
Esempio n. 2
0
 private void ConsoleOutput(object sender, DataReceivedEventArgs args)
 {
     LastConsoleMessage = DateTime.Now;
     ClientLoop.ConsoleOutput(args.Data);
 }