Should I set IsReusable to True in my HttpHandlers?

后端 未结 3 1980
故里飘歌
故里飘歌 2021-02-13 13:00

I\'ve never fully understood this property of the IHttpHandler. It is a property that you have to set when you implement the interface. I\'ve assumed that setting it to true w

3条回答
  •  滥情空心
    2021-02-13 13:47

    If your IHttpHandler implementation contains state (perhaps setup in the constructor and later used in ProcessRequest) then it can sometimes be useful to set IsReusable to false.

提交回复
热议问题