如何禁用ASP.NET MVC的URL路由 [英] How to disable ASP.NET MVC url routing

查看:80
本文介绍了如何禁用ASP.NET MVC的URL路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道我怎么禁用网址在asp.net MVC改写。我不需要网址在我的应用程序重写,并想将其关闭。原因:据我所知,URL重写使用反射,并想避免它来保存一些CPU周期。谢谢

Just would like to know how do I disable URL Rewriting in asp.net MVC. I don't need url rewriting in my application and would like to turn it off. Reason: I am aware that url rewriting uses reflection and would like to save a few cpu cycles by avoiding it. Thanks

推荐答案

如果你关心性能那就不要。使用反射路由引擎,尽管非常优化。此外,如果你把路由关你是怎么想到调用你的控制器操作?

If you are concerned about performance then don't be. The routing engine, despite the fact that uses reflection is very optimized. Also if you turn routing off how do you expect your controller actions to be invoked?

这篇关于如何禁用ASP.NET MVC的URL路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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