Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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();
        }