How is the order of execution for HttpModules determined?

前端 未结 2 1033
一向
一向 2020-12-24 11:52

Suppose that both FirstModule and SecondModule handle the Application_BeginRequest event. Will it execute in the order defined in the

2条回答
  •  难免孤独
    2020-12-24 12:38

    According to this forum post, HttpModules are executed in the order in which they were registered. This makes sense to me, because otherwise the and directives would also not work as expected, e.g. when used like this:

     
       
       
    
    

提交回复
热议问题