I am writing an asp.net HTTP module that must read configuration data once from a local file (for example, config.xml stored in the root directory of the application), and then, based on the configuration, do some processing of incoming requests.
Since there are no Application_Start / Application_init connections in Asp.NET modules, what would be the best way to handle this scenario. I try to avoid reading the configuration file every time a request arrives. Ideally, I want to read the configuration file when the application starts.
I need to encode this only in the http module and not use Global.asax
source
share