Creating a C# console application with dependency injection

  Рет қаралды 22,961

Cronin Technology

Cronin Technology

Күн бұрын

Пікірлер: 39
@Jonathan_Strange
@Jonathan_Strange 8 ай бұрын
This demonstration / tutorial is highly underrated! I'm surprised that it has so few likes and comments. Thank you Sir. *Subscribed!*
@joeljohncenteno4913
@joeljohncenteno4913 Жыл бұрын
This is straight to the point. well said well instructed. I like it when the tutorial starts from scratch
@glooman2455
@glooman2455 6 ай бұрын
Great tutorial! The explanation is very pure and professional.
@edwinhandschuh864
@edwinhandschuh864 7 ай бұрын
Thank you. I finally found someone who demonstrated current MS DI for a pure console app. Excellent job!
@robdas1
@robdas1 10 ай бұрын
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.
@Jocker88
@Jocker88 Жыл бұрын
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 :)
@cronintechnology9901
@cronintechnology9901 Жыл бұрын
You'll sometimes see people using ActivatorUtilities.CreateInstance() instead of calling GetRequiredService directly, but that's a very similar approach, really.
@mohankumars6811
@mohankumars6811 8 ай бұрын
Great, post more videos like building an application from scratch
@gerardchoolakian5570
@gerardchoolakian5570 Жыл бұрын
Simple but efficient. Thank you!
@AldecirSantos-nm6pm
@AldecirSantos-nm6pm 6 ай бұрын
Olá meu amigo! A explicação foi excelente! Meus parabéns e muito obrigado pela riqueza da informação! 😊
@vipulshrivastava1069
@vipulshrivastava1069 7 ай бұрын
Thank you so much sir for this valuable lesson...
@danielvisan3405
@danielvisan3405 4 ай бұрын
thank you! You make my life better
@Ahmedhosnybarbary
@Ahmedhosnybarbary Жыл бұрын
Thank you , very clear very informative
@ArnoldSzathmary
@ArnoldSzathmary 2 жыл бұрын
thank you very much for the wonderful explanation
@DominicCronin
@DominicCronin Жыл бұрын
Thank you
@dotnet-azure
@dotnet-azure Жыл бұрын
thank you so much. very straightforward :)
@manudelmarche
@manudelmarche Жыл бұрын
Absolutely brilliant
@mauriziomammuccini6657
@mauriziomammuccini6657 Жыл бұрын
The sample application is one of the best on Dependency Injection using C#. Compliments for exposition precision and clarity, Cronin.
@cemprafalq
@cemprafalq 2 жыл бұрын
Explained perfectly 👌.
@DominicCronin
@DominicCronin 2 жыл бұрын
Thank you
@divinocodino
@divinocodino 5 ай бұрын
Thanks was helpful
@bobdumont6742
@bobdumont6742 Жыл бұрын
good stuff. thank you!
@Khozanai
@Khozanai 9 ай бұрын
Very nice!
@riccarrasquilla379
@riccarrasquilla379 9 ай бұрын
thanks for the video
@pt_trainer9244
@pt_trainer9244 5 ай бұрын
Thank you
@ghanshyam014
@ghanshyam014 Жыл бұрын
well explained !!!
@dangerosa01
@dangerosa01 24 күн бұрын
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
@DominicCronin
@DominicCronin 23 күн бұрын
Good tip. Thanks.
@jithin.johnson
@jithin.johnson Жыл бұрын
Thank you!
@suryazn4575
@suryazn4575 Жыл бұрын
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
@cronintechnology9901
@cronintechnology9901 Жыл бұрын
I think Unity was the name for the previous generation of DI in .NET.
@ernest1520
@ernest1520 Жыл бұрын
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.
@cronintechnology9901
@cronintechnology9901 Жыл бұрын
I actually do use it for more than that in the demo. In any case, it's pretty much a standard way of working: in real life, you'll end up wanting it before long anyway.
@Anthonyfromtheuk-g3j
@Anthonyfromtheuk-g3j Жыл бұрын
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.
@cronintechnology9901
@cronintechnology9901 11 ай бұрын
Thanks for pointing this out. I hadn't noticed it. I think it's the computer's fan.
@thomashamilton564
@thomashamilton564 Жыл бұрын
Good video - but your mouse settings are _really_ annoying.
@cronintechnology9901
@cronintechnology9901 Жыл бұрын
Those settings suit my normal way of working, but I take your point. I have different settings for a recording session anyway, so I'll look at whether I can add mouse settings to my list. Thanks.
The Perfect C# Console Application...Or Not.
59:20
IAmTimCorey
Рет қаралды 74 М.
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 47 МЛН
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,7 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 13 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН
The Only .NET Scheduler You Should Be Using!
16:38
Nick Chapsas
Рет қаралды 53 М.
Dependency Injection Deep Dive | .NET & C# Essentials
38:01
Amichai Mantinband
Рет қаралды 24 М.
Dependency Injection in .NET Core (.NET 6)
1:00:32
IAmTimCorey
Рет қаралды 192 М.
Dependency Injection | Внедрение зависимостей в C# и ASP.NET Core
50:38
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 854 М.
Dependency Injection
45:17
Microsoft Visual Studio
Рет қаралды 147 М.
Object Oriented Programming is not what you think it is. This is why.
13:36
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 47 МЛН