G
Guest
Hi there, I know there is pool of HttpApplications, and for each request
coming in, HttpRuntime will dedicate one from pool to serve the request. My
questions are :
1. since HttpModule is plug into the process, does each instance of
HttpApplication keep its own set of HttpModule instance or HttpModules are
shared among all HttpApplication instances?
2. In case of HttpApplication keep its own set of HttpModule, does the
HttpModule collection get created for each request or just once and reusable
later for all the following request? In the latter case , we need to handle
the class level field carefully.
3.When I have a particular web folder which need a additional set of
HttpModule, I guess I can add them into the Web.Config within that folder.
But is ASP.NET smart enough to remove them when the request is for the other
folders?
4. Last one is whether Page object is pooled in ASP.NET. I guess the answer
is no.
coming in, HttpRuntime will dedicate one from pool to serve the request. My
questions are :
1. since HttpModule is plug into the process, does each instance of
HttpApplication keep its own set of HttpModule instance or HttpModules are
shared among all HttpApplication instances?
2. In case of HttpApplication keep its own set of HttpModule, does the
HttpModule collection get created for each request or just once and reusable
later for all the following request? In the latter case , we need to handle
the class level field carefully.
3.When I have a particular web folder which need a additional set of
HttpModule, I guess I can add them into the Web.Config within that folder.
But is ASP.NET smart enough to remove them when the request is for the other
folders?
4. Last one is whether Page object is pooled in ASP.NET. I guess the answer
is no.