IIS7 中的“经典"和“集成"管道模式有什么区别? [英] What is the difference between 'classic' and 'integrated' pipeline mode in IIS7?

查看:39
本文介绍了IIS7 中的“经典"和“集成"管道模式有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨晚我正在部署一个 ASP.NET MVC 应用程序,发现在 IIS7 设置为集成模式的情况下部署工作量较少.我的问题是有什么区别?使用其中一个的含义是什么?

I was deploying an ASP.NET MVC application last night, and found out that it is less work to deploy with IIS7 set to integrated mode. My question is what is the difference? And what are the implications of using one or the other?

推荐答案

经典模式(IIS6 及以下版本中的唯一模式)是一种模式,其中 IIS 仅直接与 ISAPI 扩展和 ISAPI 过滤器一起工作.实际上,在这种模式下,ASP.NET 只是一个 ISAPI 扩展(aspnet_isapi.dll)和一个 ISAPI 过滤器(aspnet_filter.dll).IIS 只是将 ASP.NET 视为在 ISAPI 中实现的外部插件,并像黑匣子一样使用它(并且仅当它需要向 ASP.NET 发出请求时).在这种模式下,ASP.NET 与 PHP 或其他 IIS 技术没有太大区别.

Classic mode (the only mode in IIS6 and below) is a mode where IIS only works with ISAPI extensions and ISAPI filters directly. In fact, in this mode, ASP.NET is just an ISAPI extension (aspnet_isapi.dll) and an ISAPI filter (aspnet_filter.dll). IIS just treats ASP.NET as an external plugin implemented in ISAPI and works with it like a black box (and only when it's needs to give out the request to ASP.NET). In this mode, ASP.NET is not much different from PHP or other technologies for IIS.

另一方面,集成模式是 IIS7 中的一种新模式,其中 IIS 管道与 ASP.NET 请求管道紧密集成(即完全相同).ASP.NET 可以看到它想要处理的每个请求,并在此过程中进行操作.ASP.NET 不再被视为外部插件.它完全混合并集成在 IIS 中.在这种模式下,ASP.NET HttpModule 的功能基本上与 ISAPI 过滤器的功能几乎相同,而 ASP.NET HttpHandler 的功能几乎与 ISAPI 相同扩展可以有.在这种模式下,ASP.NET 基本上是 IIS 的一部分.

Integrated mode, on the other hand, is a new mode in IIS7 where IIS pipeline is tightly integrated (i.e. is just the same) as ASP.NET request pipeline. ASP.NET can see every request it wants to and manipulate things along the way. ASP.NET is no longer treated as an external plugin. It's completely blended and integrated in IIS. In this mode, ASP.NET HttpModules basically have nearly as much power as an ISAPI filter would have had and ASP.NET HttpHandlers can have nearly equivalent capability as an ISAPI extension could have. In this mode, ASP.NET is basically a part of IIS.

这篇关于IIS7 中的“经典"和“集成"管道模式有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆