假设 FirstModule
和 SecondModule
都处理 Application_BeginRequest
事件。它会按照在 web.config 中定义的顺序执行吗?
<httpModules>
<add type="MyApp.FirstModule, MyApp" name="FirstModule"/>
<add type="MyApp.SecondModule, MyApp" name="SecondModule"/>
<add type="OtherApp.OtherModule, OtherApp" name="OtherModule"/>
</httpModules>
还有其他指定顺序的方法吗?