惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
小众软件
小众软件
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog

博客园 - octoberfirst

Service注册发现及其调用-分布式服务框架 比较成熟的支持数据分票的数据库产品 CodeCommit on Amazon AWS 使用yeoman来搭建webapp脚手架 5美元的互联网硬件主板 互联网创业的逻辑 Pyramid, Django, 和 Flask 51 Best DevOps Tools for #DevOps Engineers 目前的流行的一些开源框架 bank business A low-level Look at the ASP.NET Architecture Bit-tricks and other nifty little snippets. Endianess The best method for counting bits in a 32-bit integer(2) The best method for counting bits in a 32-bit integer Scalability Best Practices: Lessons from eBay Changes to JavaScript, Part 1: EcmaScript 5 Enterprise Service Bus Overview Inheriting From a Native C++ Class in C# - octoberfirst
Use HttpApplication.CompleteRequest Instead of Response.End
octoberfirst · 2010-03-19 · via 博客园 - octoberfirst

Use HttpApplication.CompleteRequest Instead of Response.End

HttpApplication.CompleteRequest is preferable to use for aborting a request in an ASP.NET application over Response.End, because it has better performance characteristics.  If you’re using Response.End, you’ve probably at one time or another encountered the ThreadAbortException that goes along with it.

The behavior of CompleteRequest changed with 2.0, as Rick describes here.  However, the reason why you’ll most likely want to call CompleteRequest rather than Response.End is that, while it still short-circuits the ASP.NET pipeline (jumping immediately to the EndRequest event), it does so without throwing a ThreadAbortException.

http://stevesmithblog.com/blog/use-httpapplication-completerequest-instead-of-response-end/