Enumerating HttpModules: MVC Edition
Posted August 13, 2014
Reading time: 1 minute
About 6 years ago, I wrote a post about Enumerating HttpModules in ASP.NET. On my current project, I once again needed to view the loaded HttpModule
s, but this time in ASP.NET MVC
. The code is very similar; it just has some MVC-isms and has been LINQ
-ified now.
Here is the relevant code:
|
|
And here is what the output would look like in the default ASP.NET MVC Bootstrap template:
The sample code is available on GitHub: EnumerateMvcHttpModules
Happy enumerating!