public void Process()
{
using (this.inputStreamField = new BufferedStream(this.socket.GetStream()))
{
this.OutputStream = new StreamWriter(new BufferedStream(this.socket.GetStream()));
try
{
this.ParseRequest();
this.HandleGetRequest();
}
catch (Exception exception)
{
this.WriteFailure();
Logger.Warn(exception);
}
try
{
this.OutputStream.Flush();
}
catch (Exception exception)
{
Logger.Warn(exception);
}
this.inputStreamField = null;
this.OutputStream = null;
this.socket.Close();
}
}