Creating a C# console application with dependency injection

preview_player
Показать описание
The default C# console application that Visual Studio creates for you doesn't come with Dependency Injection set up (although some other project types do). I think this is a missed opportunity, so this video shows you the few simple steps that are needed to do it yourself.
Рекомендации по теме
Комментарии
Автор

This demonstration / tutorial is highly underrated! I'm surprised that it has so few likes and comments. Thank you Sir.
*Subscribed!*

Jonathan_Strange
Автор

This is straight to the point. well said well instructed. I like it when the tutorial starts from scratch

joeljohncenteno
Автор

Thank you. I finally found someone who demonstrated current MS DI for a pure console app. Excellent job!

edwinhandschuh
Автор

Concise and informative. Truly excellent! Thank you.

cbc
Автор

Great tutorial! The explanation is very pure and professional.

glooman
Автор

That was an excellent presentation. I learned more in this 20 minute video, than 20 hours of trying to understand generic hosting from reading online documentation. Well done.
I will look for more of your videos.

robdas
Автор

The sample application is one of the best on Dependency Injection using C#. Compliments for exposition precision and clarity, Cronin.

mauriziomammuccini
Автор

Thank you Cronin, I was using another way to implement DI into my console projects but I was so wrong, thank you to explain these think. Nice explanation, have a good day :)

Jocker
Автор

Great, post more videos like building an application from scratch

mohankumars
Автор

Thank you so much sir for this valuable lesson...

vipulshrivastava
Автор

thank you very much for the wonderful explanation

ArnoldSzathmary
Автор

thank you so much. very straightforward :)

dotnet-azure
Автор

Great video!! Not necessary install DI from nugget package. it's already a dependency from Hosting package, so installing Hosting it automatically install DI also

dangerosa
Автор

Olá meu amigo!
A explicação foi excelente!
Meus parabéns e muito obrigado pela riqueza da informação!
😊

AldecirSantos-nmpm
Автор

Thank you , very clear very informative

Ahmedhosnybarbary
Автор

Hi Cronin, That is a nice explanation I have a doubt what is the difference between Microsoft.Extension.DI and Unity Container ? Can you please explain the difference and when exactly we use them? I think for logging we need to explicitly inject if we use unity

suryazn
Автор

Why using Host at all and not just create a ServiceCollection instance? It looks like you're only using the Host to get access to service collection anyway.

ernest
Автор

Good video, thanks. Maybe worth running your audio through some ai cleanup tool or recording it cleaner, hiss in background almost had me skipping this video at the start.

Anthonyfromtheuk-gj
Автор

Good video - but your mouse settings are _really_ annoying.

thomashamilton