George George

George George

  • NA
  • 778
  • 0

clean up resource in HttpListenerContext

Jun 4 2008 4:21 AM

Hello everyone,


I currently clean-up resource in an HttpListenerContext instance in this way.

- Get Request.InputStream, and Close it;
- Get Response.OutputStream, and Close it.

My question is,

Is it the correct way to clean-up resouces? Since I did not fonud a Dispose or Close method for this class. Are there any more elegant way to clean-up resouce for HttpListenerContext?


thanks in advance,
George


Answers (2)