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.
考虑一个可以为多个路径配置的 HttpHandler。但是根据与 url 匹配的路径,我可以选择要应用的设置。
我不想在 url 中传递参数。
我现在没有时间写一个完整的例子,但我想这将是要走的路:
祝你好运。
谢谢。我已经做到了,而且效果很好。我还使用了反射器工具来查看处理程序映射匹配是如何进行的。我似乎遇到了另一个挑战。根据应用程序池的类型,有不同的方式来配置 httphandlers。有没有一种通用的方法来获取当前池 httphandlers 的配置数据?