开发者

Are HttpHandlers reinstantiated every request?

开发者 https://www.devze.com 2023-02-01 17:15 出处:网络
I\'ve defined a custom HttpHandler, public class RequestHandler : IHttpHandler Which I pass all my requests through,

I've defined a custom HttpHandler,

 public class RequestHandler : IHttpHandler

Which I pass all my requests through,

<configuration>
    <system.webServer>
        <handlers>
          <add name="RequestHandler" path="*" verb="*" type="WebApplication6.RequestHandler" />
        </handlers>
  开发者_开发知识库  </system.webServer>

Does this class get re-constructed every time someone requests a page or not?


The handler will be reused if IHttpHandler.IsReusable returns true.

IHttpHandler

0

精彩评论

暂无评论...
验证码 换一张
取 消