Disclaimer: This is the first time I am asking a question that might be classified as subjective. As English is not my first language, it is hard to phrase this right. So please feel free to edit the question in order to make it clearer, or to point me at other ways for asking this.
Intro: David Ebbo (architect on the ASP.NET team) just posted on Register your HTTP modules at runtime without config using the seemingly undocumented PreApplicationStartMethod assembly level attribute
我对此百感交集。
一方面,能够在应用程序启动阶段尽可能早地进行操作是件好事。
另一方面:这足够吗?我们是否需要PrePreApplicationStartMethod来篡改PreApplicationStartMethod行为?扩展到非汇编用途(例如,NuGet已经围绕PreApplicationStartMethod的每次使用程序集限制工作)?
问题:除了将其用于无配置启动之外,您认为PreApplicationStartMethod属性如何?