Asp.net HttpModule in directory level web.config

后端 未结 4 1015
心在旅途
心在旅途 2021-02-04 10:31

I created a custom http module and want to add this module to the web config. The web application is a project that contains several \"sub applications\". A sub application is j

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 10:58

    Would it not be possible to create a custom config section that lists out the directories you want to include or exclude your module behaviour? Your module could then inspect that to see if it should do it's work based on the request URL.

    I know that's not quite what you are asking, but would certainly give you the behaviour you need.

提交回复
热议问题