Become a Patreon and get source code access: / nickchapsas
Check out my courses: https://dometrain.com
Hello everybody I'm Nick and in this video I wanna talk about a concept that I am personally very passionate about and that is compile time dependency injection in .NET using Source generators. Source generators are a form of metaprogramming that allows us to write code that inspects out code and then write code which is compiled and added in our compiled output. That means that instead of using reflection to resolve services in dependency injection we can write all the code upfront and get safe and performant class resolution.
Give Jab and StrongInject a star on GitHub
Jab: https://github.com/pakrym/jab
StrongInject: https://github.com/YairHalberstadt/st...
Timestamps
Intro - 0:00
The problem - 1:14
StrongInject - 3:05
Jab (My preference) - 10:30
Don't forget to comment, like and subscribe :)
Social Media:
Follow me on GitHub: http://bit.ly/ChapsasGitHub
Follow me on Twitter: http://bit.ly/ChapsasTwitter
Connect on LinkedIn: http://bit.ly/ChapsasLinkedIn
Keep coding merch: https://keepcoding.shop
#dotnet #dependencyinjection #sourcegenerators