问题
I'm creating a custom image handler to handle all *.jpg requests. I would like to register it in IIS 7 & above by Add Manage Handler. I have two choices:
Create a separate ASP.Net web application project and create a class under App_Code folder which contains only handler code. In this way by adding handler to web.config I would be able to register handler into IIS.
OR
Create a class library project without entire ASP.Net structure. In this way I need to use IIS interface and manually register managed handler.
Question is which way is better? Can I avoid overhead of entire ASP.Net Framework by just creating class library project?
来源:https://stackoverflow.com/questions/19025514/custom-http-handler-for-images