public void StartServer() { if (!isRunning) { isRunning = true; server = new TcpListener(IPAddress.Any, port); server.Start(1); acceptingThread = new Thread(new ThreadStart(RunAccepting)) { IsBackground = true }; receivingThread = new Thread(new ThreadStart(RunReceiving)) { IsBackground = true }; screenshotThread = new ScreenshotThread(subject); acceptingThread.Start(); receivingThread.Start(); screenshotThread.Start(); } }
public JobData(ScreenshotThread screenshotThread, string tempDirectory) { ScreenshotThread = screenshotThread; TempDirectory = tempDirectory; }