To get your custom IHttpModule up and running you need three simple things:
- Source code
- Compiled and GAC’ed DLL
- Registration with IIS config system
Suppose, you have a simple module that raises an event with HttpContext as an argument before authentication happens, on BeginRequest: