.NET interview essentials
Trace a request through ASP.NET Core and explore dependency injection, async I/O, managed memory, and practical C# behavior.
Explore the concepts
Pick a concept. Read the code. Make the call.
Each example contrasts a common design problem with one possible improvement. The best design still depends on context.
Each middleware can handle a request, pass it on, and process the response on the way back.
Middleware pipeline
1Request
2Middleware A → B
3Endpoint
4Response unwinds
What to notice
Authentication runs after authorization, so the authorization layer has no established identity.
C# / HTTP / SQL sample
A design to question
app.UseAuthorization();
app.UseAuthentication();
app.MapControllers();Right or wrong: is this version a good fit?
Quick knowledge check
Put your interview hat on
In a typical ASP.NET Core pipeline, which should run first?
Based on our .NET interview guide. Examples are simplified for learning; adapt patterns to the requirements of your application.