public void Stop() { Log("Stop called."); mTestServerState = TestServerState.Stopping; // Close the listener sockets, stop accepting new connections mVMRequestReceiver.Stop(); mStatusRequestReceiver.Stop(); // Kill mstsc.exe processes since these are child processes of this process KillChildProcesses(); Log("Done.", true); mTestServerState = TestServerState.Stopped; }
public void Start() { mTestServerState = TestServerState.Initializing; // Start the receiver/listener sckets for VM communication, and GUI requests mVMRequestReceiver = new VMRequestReceiver(this); mStatusRequestReceiver = new StatusRequestReceiver(this); StartLog(); // Logging for this process DatabaseServerStart(); // Download data from the database mVMRequestReceiver.Start(); mStatusRequestReceiver.Start(); StartTimers(); StartPeriodicReports(); mTestServerState = TestServerState.Running; }