Dependency Injection via Primary Constructors #dotnet #aspnetcore

preview_player
Показать описание
Here's how we can use primary constructors in c# 12 for dependency injection in an #aspnetcore app.

Join this channel to get source code access and other perks:
Рекомендации по теме
Комментарии
Автор

how do you feel about the primary constructor parameters not being able to be marked as readonly?

do you think it will be a problem with DI?

Sander-Brilman
Автор

All we needed was the ability to autofield the constructor parametr like in TypeScript. Instead we got this half-assed feature that adds more problems than it solves.

pfili
Автор

So much potential as a great content creator, wasted with this comment. Apparently there is an effort to post videos of all dotnet news even if they are questionable news.

ddrsdiego