Replacement for HttpHandlers in ASP.NET vNext

I read that HttpHandlers is not part of ASP.NET 5 (vNext). Instead, a replacement that works the same way can be used.

I am looking for a solution that can load an image based on an identifier from an object. And if this image does not exist, a [Non Image] image should be displayed instead. This works great with the http handler. But I do not see a good solution in ASP.NET vNext.

+4
source share
1 answer

Replacement HttpHandlerand HttpModuleis an intermediate software. You can easily write middleware to solve your problem.
However, in your particular case, custom Image TagHelpermay be more useful.
TagHelper Example Middleware
Example

+4
source

All Articles