Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在实现这个问题中描述的 IHttpModule 。由于我们正在检查每个请求,我担心可能会影响性能。有没有人在实现 IHttpModules 时遇到性能问题?
这取决于它在做什么......管道中有很多事件,你可能不知道这实际上是一个“杯水车薪”的情况。
如果它做了很多重的东西,它就会产生影响(它必须是真正的重......或者跨越很多点击)。如果它很小/很轻……你不会注意到它的存在。