Dispose a Web Service Proxy class?

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-05-13T00:21:48Z Indexed on 2010/05/13 0:44 UTC
Read the original article Hit count: 249

Filed under:
|
|

When you create and use a Web Service proxy class in the ASP.Net framework, the class ultimately inherits from Component, which implements IDisposable.

I have never seen one example online where people dispose of a web proxy class, but was wondering if it really needs to be done. When I call only one method, I normally wrap it in a using statement, but if I have a need to call it several times throughout the page, I might end up using the same instance, and just wondered what the ramifications are of not disposing it.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#