ASP.Net 备忘

IIS 5

IIS (inetinfo.exe) -> ASP.Net ISAPI (aspnet_isapi.dll) -> ASP.Net worker process (aspnet_wp.exe) -> ...

 

IIS 6 经典模式

IIS (inetinfo.exe) -> ASP.Net worker process (w3wp.exe, application pool) -> ASP.Net ISAPI (aspnet_isapi.dll) -> AppDomain -> HttpRuntime.process(new HttpWorkerRequest()) -> HttpApplicationFactory.GetApplicationInstance() -> HttpApplication.BeginProcessRequest(new HttpContext(workerRequest)) -> IHttpModule -> IHttpHandlerFactory -> IHttpHandler

 

IIS 7 集成模式 vs. 经典模式

IIS是管道和过滤器, ASP.Net也是管道和过滤器, 干脆就别绕了, 直接合了吧, 就是集成模式.

 

前台线程 vs. 后台线程

Thread.IsBackground = true, 应用程序的退出必须等待所有前台线程退出, 不必等后台线程.

 

工作者线程 vs. IO线程

ThreadPool本身是为了性能, 两种线程的区分也是为了性能, ThreadPool提供了对两种线程的区别对待.

 

权限

<system.web>

<processModel username="" password="" />

<identity impersonate="true" username="" password="" />

</system.web>

阅读更多
换一批

没有更多推荐了,返回首页