Re: IDisposable or not in custom classes



"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:%23T6DsguHHHA.4712@xxxxxxxxxxxxxxxxxxxxxxx

Nicholas,

Can you show the thread that you are referring to?

Its subject is "HttpWebRequest and IDisposable" and it was started by me in
this group on 10th December.

I don't know if it was pointed out, but there is no reason to implement
IDisposable on the request since the request doesn't do anything until it
is sent.

It's actually not possible to implement it because it's not disposable, much
to everyone's surprise...

And yes, it is overkill to implement it on all the classes.

Indeed.

There are very specific guidelines in place for when to implement
IDisposable.

Are there? Are they available for download anywhere...?

Mark


.



Relevant Pages

  • Re: Internet/Web classes in .NET/VC++...
    ... open a child window and request the result of the query from another page ... If I use the C++ WebClient class, I can successfully get the end results. ... queries, I cannot use the name-value form for sending data. ... So, I tried the HTTPWebRequest class (inherited from WebRequest, specific ...
    (microsoft.public.dotnet.languages.vc)
  • Re: forms auth, authenticate against already encrypted password?
    ... i actually tried using a WebClient implementation first, sending a POST request to login.aspx which handled Request.Formetc in the Page_Load event. ... i have tried it again using the HttpWebRequest class and now i can share the CookieContainers, ... programamtically send request to forms authentication protected webpage. ... you can consider share a cookie container ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: WebResponse.GetResponseStream() exception
    ... programmatically request some web pages, ... Does this problem frequently occur when you use HttpWebRequest class to ... here is a test program which can programmatically request the ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)
  • Re: Is it possible to turn off "HTTP Keep-Alive" globally in app.config?
    ... If the server hosting the Web Service is under your control can't you just ... getting the ConstructorInfo for HttpWebRequest, ... instance make new TCP connection for each web service request. ... SoapHttpClientProtocol has a protected method GetWebRequest(System.Uri ...
    (microsoft.public.dotnet.languages.csharp)
  • True asynchronous HttpWebRequest implementation with abort and timeout
    ... I'm tired of seeing all these asynchronous HttpWebRequest ... How do I implement an cancel method that aborts the request? ... private static void RespCallback(IAsyncResult asynchronousResult) ... // Read the response into a Stream object. ...
    (microsoft.public.dotnet.framework)