top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is meant by The IHttpHandler and IHttpHandlerFactory interfaces ?

+2 votes
397 views
What is meant by The IHttpHandler and IHttpHandlerFactory interfaces ?
posted Dec 29, 2016 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

IHttpHandler interface is implemented by all the handlers. The interface consists of property called IsReusable. The IsReusable property gets a value indicating whether another request can use the IHttpHandler instance. ProcessRequest() method allows you to process the current request. This is the place where all your code goes. This method receives a parameter of type HttpContext using which you can access the intrinsic objects such as Request and Response.

IHttpHandlerFactory interface consists of two methods - GetHandler and ReleaseHandler. The GetHandler() method instantiates the required HTTP handler based on some condition and returns it back to ASP.NET. The ReleaseHandler() method allows the factory to reuse an existing handler.

answer Jan 6, 2017 by Manikandan J
Similar Questions
+2 votes

Which protocol will be used to implement service based interfaces in 5G core ? Would it be REST based interface or something else ?

+2 votes
...