File handler module

Topics: Administration, Writing modules
Apr 19, 2012 at 5:11 PM

I'd like to create an Orchard module that intercepts calls for specific types of image files, does some manipulating and caching, then returns the file.  I have been able to set this up in Orchard using a HttpHandler but that requires me to make changes to the app's web.config and I'd like to let users simply install the module without additional config steps.

Any suggestions on the best way to plug this into the Orchard pipeline in a way that users can just install the module and it will immediately start handling requests that end in the extension of the image files I'm looking for?

Apr 19, 2012 at 5:36 PM

Use a controller action instead of a handler.