private void UnprepareCapture(bool captureStarted) { RemotingServices.Disconnect(this); ChannelServices.UnregisterChannel(serverChannel); serverChannelName = null; serverChannel = null; clients = null; if (captureStarted) eventQueue.Sort(); else eventQueue = null; eventStats = null; details = null; }
public void StartCapture(Details details, IProgressFeedback progress) { if (startWorkerThread != null || stopWorkerThread != null) throw new InvalidOperationException(); this.details = details; this.progress = progress; stopRequest.Reset(); startWorkerThread = new Thread(DoStartCapture); startWorkerThread.Start(); }