Http handler in asp.net core

Viewed 8314

Now i have asp mvc 5 .net framework project and handlers (ashx files with custom logic) to process customer needs (i.e. pricelists in custom format).

I intend to move to asp core, and the question : is there an equivalent to handler? Articles on internet suggest to put logic to middleware, but this is inconvenient way in my case.

3 Answers

Razor pages with it's own logic and model best way to substitute custom handlers in my case

You could use Middleware or Interceptor for tracking any incoming request. The most important difference between them is that, you could use interceptor per any action too - for this you should use dependency injection.

Related