Amazing presentation. I understand this concept in 8 min rather than reading the same in the whole day . Keep posting this type of critical videos and we will definitely watch you❤
This video is great very helpful. One thing I need to understand better is the concept of services and containers. Less about the code and the implementation in .net and more about conceptually what a service is, what a container is. I'm aware that it's all for the purpose of dependency injection, and I understand dependency injection, but services, containers, and app building are foreign concepts for me.
Great explanation! Thumbs up ! Request fir a tutorial ! A complete Register and Login with Forgot and Reset password ! / Role based authorization! / would be much appreciated! 😊
Thanks for sharing. But all the examples on RUclips are without existing an abstract class having method implemented, also if the service have properties.
Good video. I'd love to see you include some of the extra info like advising people to use some sorts of automated service registration tools like AutoFac as this will save their time and hassle as the application grows with more services to be registered line by line.
Nice and simple ! please I have a question there.Do we really need to use Autofac in .Net 6 ? if yes/no would you please explain why ? thank you for your reply.
Hi, there! Glad you like it. This is a questions, that's not so simple to answer with yes or no. Take a look at this autofac migration documentation: autofac.readthedocs.io/en/latest/integration/aspnetcore.html Cheers :)
super good video! One thing I am trying to figure out right now. I get that we make the interface and add the interface to the "Dependancy injection system" But when we go back to the controller..... we set a variable [interfaceType _Name] then in the constructor we pass in [interfaceType Name].... Now when I step though the code I See that it's getting the info from the Dependancy injection I just don't understand how? I am missing how passing it into the constructor connects to the dependancy injection register thing. hopefully that made sense lol.
Peace upon you , I have start learning .core .6 with c# and trying to do comment with rating and admin dashboard from scratch so since you mentiond to comment on the video about something to make video about it I droped this comment ...
Wow thanks for simple explanation what actually the DI is for. Would love to watch email sender implementation or another topic: how to perform lets say monthly activities i.e. e-mail sending. Regards!
What, if we have several services? Should I add them to the constructor? And what if my service also has a constructor where I should add the parameters?
Do you have a reason why your EmailService is not added as singleton? I don't see a reason why it should be instantiated again and again for every http call.
Can someone help out with the namespace to be implemented in the program class? Take for instance like the IEmailService he used. What would be the namespace in the program class?
Ran into an issue with DI and using it outside of the pipeline (say, outside of a controller). No one seems to know how to use DI this way nor how to use it with a class library. Been told it's not possible, but I just can't believe this to be true.
@@scmsean - That's what I figured. I'm trying to use DI outside of a web application is all, but looks like I need to do a lot more work or reference something else (DotNet6). It should be simple, but tutorials either gloss over the important stuff, only use MVC, or are out of date.
@@davestorm6718 Tutorials usually just show you simple stuff. They never help you with real world stuff. Since they are showing you simple, they are never are setup correctly.
@@scmsean Agree! There's a lot of them that simply do things the wrong way, as well. Trying to find the "correct" way (in my case the Microsoft way), has been difficult - even the books online reads more like an index than a step by step guide, leaving more questions than answers. MS also keeps changing the game - they ditched the startup.cs, for example, and black-boxed a lot of things (EF is one example - if EF was more efficient, I'd still be using it - but it's still slow no matter how many optimizations you apply, terrible for microservices, insecure via sp_ExecuteSql , full of bloat and makes excessive calls to a database. Sure, it's easy, but the price is too high! - you spend days tweaking it then realize you could have just written DB code in ADO.Net - or used an ORM generator - and been done with it - faster!) I did a bulk insert with 10 million records: in raw ADO.Net code - it took 14 seconds to run, in highly optimized EF Core, it took a full minute!)
Hi! Great video, you helped me lot here with a problem in injection on Startup. I apprecite if u can help me out with a problema that I'm having rn when I run my Application. "Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)" That erro appear to me in swagger, and I'm search for a long period of time and I did not found a solution, can you help? Thanks!
🚀C# Progress Academy - Become a senior C# developer: academy.tutorials.eu/p/csharp-progress-academy
Kind sir, you made a one-hour video tutorial in just 8 minutes.. Thank you.
This is the most clear and concise explanation of implementing a service through dependency injection I have seen!
yes
thank you!
Hondestly, after reading 3 entire Days of documentation, this tutorial did the job in 8 minutes...
Great one!
Of all the DI tutorials I watched, this one finally made it make sense. Thank you!
This is the clearest video i have seen in my life. Thanks
sounds good
You've helped me learn something I've been stuck on for a WEEK. THANK YOU!!!
Well explained in a very short time. Thanks
This was an excellent and simple way to understand how to create a service and implement it from DI. Thank you very much!
this is very good, short and simple to understand.
Amazing presentation. I understand this concept in 8 min rather than reading the same in the whole day . Keep posting this type of critical videos and we will definitely watch you❤
Thank you for keeping things short and precise
Sure :-)
very simple and clear! thanks dude!
Man you are amazing, explained those concept in real quick. I would say, every single word is really important to me hope everyone else feel the same.
thanks! glad you like it :)
This tutorial is very clear and understandable even for a newbie like me! Thank you very much!
That's what I was looking for , for a long time...I was struggling to understand....Thanks buddy...you are geeat😊
Short and clear, thank you.
This is the first video I watch regarding Dependency Injection, and it’s really clear and helpful.
Glad it was helpful!
Short and sweet but full of important information. Thank you for the video!
thanks
never seen this kind of explanation great dood..
great tutorial, concise and clear! keep sharing!
Nice, simple and precise, thank you!
Sure
Awesome content .. loved the explanation!
very good explanation of a complex topic. thx
Very simplified. I love this
thanks, This is very good. I need all the information exactly what i needed.
that's awesome! :)
You are genius. Simple and easy to understand. Please work on delegates in c#
Beautiful! I am now a subscriber.
awesome! :)
Very well explained thank you so much
Good explanation. Thanks
You are welcome
Solid and to the point. Thanks.
sure!
Cheers mate nice and concise
Thanks for class!!!
Awesome explanation. I've been trying to get my head around this concept and this finally did it for me thank you!
Hi bro, your explanation is really simple and clear. Also, practically show how to do it. Appreciate!🎉
thanks mate :)
Perfect, simple and concise video. Thanks!
You're welcome!
Fantastic!
Really nice and easy to understand what the dependency injection is.
My english is very bad, but i have understood every your word. Great pronunciation. Thanx, you're awesome!
greatly helpful
Glad it helped
Is it possible to make multiple service for one controller?
This video is great very helpful. One thing I need to understand better is the concept of services and containers. Less about the code and the implementation in .net and more about conceptually what a service is, what a container is. I'm aware that it's all for the purpose of dependency injection, and I understand dependency injection, but services, containers, and app building are foreign concepts for me.
Thanks a lot for this feedback! I will put that on our todo-list so that we can create a video regarding services and containers in asp net :)
thank you it is really helpful
Great explanation! Thumbs up ! Request fir a tutorial ! A complete Register and Login with Forgot and Reset password ! / Role based authorization! / would be much appreciated! 😊
Thank you, short and clear. Btw would you make videos about clean architecture and mediatr as well?
Yes, definitely
Thanks for sharing. But all the examples on RUclips are without existing an abstract class having method implemented, also if the service have properties.
Good video. I'd love to see you include some of the extra info like advising people to use some sorts of automated service registration tools like AutoFac as this will save their time and hassle as the application grows with more services to be registered line by line.
Nice job, if possible do a side by side comparison with Dependency Injection in Blazor Server App vs. Blazor Web Assembly App. Ty!
Nice and simple ! please I have a question there.Do we really need to use Autofac in .Net 6 ? if yes/no would you please explain why ? thank you for your reply.
Hi, there! Glad you like it.
This is a questions, that's not so simple to answer with yes or no. Take a look at this autofac migration documentation:
autofac.readthedocs.io/en/latest/integration/aspnetcore.html
Cheers :)
Thanks a ton 🍻
super good video! One thing I am trying to figure out right now. I get that we make the interface and add the interface to the "Dependancy injection system" But when we go back to the controller..... we set a variable [interfaceType _Name] then in the constructor we pass in [interfaceType Name].... Now when I step though the code I See that it's getting the info from the Dependancy injection I just don't understand how? I am missing how passing it into the constructor connects to the dependancy injection register thing. hopefully that made sense lol.
Peace upon you , I have start learning .core .6 with c# and trying to do comment with rating and admin dashboard from scratch so since you mentiond to comment on the video about something to make video about it I droped this comment ...
Wow thanks for simple explanation what actually the DI is for. Would love to watch email sender implementation or another topic: how to perform lets say monthly activities i.e. e-mail sending. Regards!
Please make a video for make a c# library and use in c++ projece or other language.
What is the difference between tutorialsEU - c# and TutorialsEU channel . Are those two done by the same company
Need a video explaining Asp.Net Core MVC Razor Pages!
will create it!
Thanks😃🙌
What if we want to use it in a seperate class not a controller. Can you explain that as well?
Thanks
What, if we have several services? Should I add them to the constructor? And what if my service also has a constructor where I should add the parameters?
You can pass more services just need create a field and add them to constructor !
Do you have a reason why your EmailService is not added as singleton? I don't see a reason why it should be instantiated again and again for every http call.
Thank You!
D best. SImple and clear
Can someone help out with the namespace to be implemented in the program class? Take for instance like the IEmailService he used. What would be the namespace in the program class?
I believe that all files beneath a project in a solution, that that project name as their namespace
Is creating an interface necessary? Can't i inject the class directly?
superb
thanks
Thanks!!
Ok, but what I want to know is how you register nested services in the Program.cs
Please i have been looking for this in nestjs, does anyone know of an approach
thanks!
please have a tutorial for rabbitMQ
Thankk
Ran into an issue with DI and using it outside of the pipeline (say, outside of a controller). No one seems to know how to use DI this way nor how to use it with a class library. Been told it's not possible, but I just can't believe this to be true.
Using it with a class library is the whole point of it.
@@scmsean - That's what I figured. I'm trying to use DI outside of a web application is all, but looks like I need to do a lot more work or reference something else (DotNet6). It should be simple, but tutorials either gloss over the important stuff, only use MVC, or are out of date.
@@davestorm6718 Tutorials usually just show you simple stuff. They never help you with real world stuff. Since they are showing you simple, they are never are setup correctly.
@@scmsean Agree! There's a lot of them that simply do things the wrong way, as well. Trying to find the "correct" way (in my case the Microsoft way), has been difficult - even the books online reads more like an index than a step by step guide, leaving more questions than answers. MS also keeps changing the game - they ditched the startup.cs, for example, and black-boxed a lot of things (EF is one example - if EF was more efficient, I'd still be using it - but it's still slow no matter how many optimizations you apply, terrible for microservices, insecure via sp_ExecuteSql , full of bloat and makes excessive calls to a database. Sure, it's easy, but the price is too high! - you spend days tweaking it then realize you could have just written DB code in ADO.Net - or used an ORM generator - and been done with it - faster!)
I did a bulk insert with 10 million records: in raw ADO.Net code - it took 14 seconds to run, in highly optimized EF Core, it took a full minute!)
The best way to upload an Excel file into database using Razor pages
SignalR for aspx
Ich könnte ein einfaches Beispiel gebrauchen, über Account Registrierung und Logging mit SQL entity framework und dependency injection
me, a 100% beginner watching this out of context with no idea on how to program in C# or what anything here means: ._.
Hi! Great video, you helped me lot here with a problem in injection on Startup. I apprecite if u can help me out with a problema that I'm having rn when I run my Application.
"Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)"
That erro appear to me in swagger, and I'm search for a long period of time and I did not found a solution, can you help?
Thanks!
You are awesome! Very helpful, thank you
Sure thing!