Organizational Research By

Surprising Reserch Topic

when is a generic httphandler an ashx the ihttphandler interface reusable using -'c#,asp.net,.net,.net-4.0,httphandler'


when is a generic httphandler an ashx the ihttphandler interface reusable  using -'c#,asp.net,.net,.net-4.0,httphandler'

I've been using Ashx along with jQuery. I've read msdn, I'm talking about the IHttpHandler.IsReusable Property.


  Gets a value indicating whether another request can use the
  IHttpHandler instance.


What do they mean "the IHttpHandler instance."? Are they trying to make it alike static for everyone to see and use ? Is it reusable by the same what ? ( QueryString, cookies, etc?)

If I write this:

public class MyHttpHandler : IHttpHandler
   {
      public void ProcessRequest(HttpContext context)
      {
         context.Response.Write(DateTime.Now.Ticks.ToString());      
      }

      public bool IsReusable
      {
         get { return true; }
      }
   }


it appears each request will get its own up-to-date - Datetime value.
    
asked Sep 7, 2015 by rajesh
0 votes
20 views



Related Hot Questions



Government Jobs Opening


...