Assessments

Chapter 1

  1. What are the benefits of dependency injection?

It allows better separation of the interface and the actual implementation and lets us change the implementation at any time. It also recursively injects all required dependencies.

  1. What are environments?

A named set of startup values.

  1. What does MVC mean?

Easy peasy: model-view-controller!

  1. What are the supported lifetimes in the built-in dependency injection container?

Transient (a new instance is created every time), Scoped (a new instance is created on each HTTP request and always returned), and Singleton (a single instance is created).

  1. What is the difference between .NET Core and .NET Standard?

.NET Standard is just a standard set of APIs that is implemented ...

Get Modern Web Development with ASP.NET Core 3 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.