Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pchc.PCHCServer.Stop C# (CSharp) Method

Stop() public method

Stop the http server process and Release this object resources.
public Stop ( ) : void
return void
        public void Stop()
        {
            lock (this.initialQueue)
            {
                lock (this.segmentQueue)
                {
                    // Release this object resources.
                    this.initialQueue.Clear();
                    this.segmentQueue.Clear();
                }
            }

            this.httpRequest = null;
            this.httpRequestPayload = null;

            // Stop the http server process.
            if (this.httpServerTransport.RunState != State.Stopped)
            {
                this.httpServerTransport.StopHttpServer();
            }
        }