ASP.NET Core

16 cards

1 / 1600

When yes

Logging, authentication, CORS, exception handling, rate limiting — anything cross-cutting

When no

Business logic for a specific endpoint — use endpoint handler / controller

Interview tip

Middleware order is a favorite question. UseAuthentication BEFORE UseAuthorization, both AFTER UseRouting.