Rough Notes on .NET
Table of contents
Dependency Injection
DI through interfaces, through constructor, by method with [FromService], in razor pages with @inject in the middleware.
Service lifetime
Singleton (a single instance) static
Scoped (for that particular session/Http Context)
Transient (for every call )