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();
}
}