In the line 7 looks like the variable "client" isn't being used, Isn't that another thing that should be improved/corrected?
@reshmaraj5318 Жыл бұрын
Thanks for the valuable contents.. i liked every video i watch just to encourage you to do more videos so that people won't miss the quality content from you
@DotNetMastery Жыл бұрын
I appreciate that!
@anirudh8718 Жыл бұрын
Nice video! Keep them coming 👍
@sairakshith4022 Жыл бұрын
This Series is very Helpful thank you so much.
@DotNetMastery Жыл бұрын
You're very welcome!
@1lennartp1 Жыл бұрын
Why not injecting it. Would allow to test, mock it and resuse it in the application?
@DotNetMastery Жыл бұрын
Injection would be a good idea as well, but many times you will see some services in the code that is needed in one place and never really updated. Rather than modifying things with injection a quick correction would be to make sure you are disposing it!
@Max-vd6fy Жыл бұрын
Hi, Bhrugen Patel, I know you showed a scene using "using" as you were sending emails, but what is the other scene should I use "Using"? I'm trying to understand where and when should I use it
@Max-vd6fy Жыл бұрын
how can I realize that a variable needs to be disposed of?
@DotNetMastery Жыл бұрын
Something that you typically create object of but common use cases are streamreader since sometimes it might take a while to read all content.
@VaibhavSingh-to6gg Жыл бұрын
Sir am working with your .net core 8 9 hour video , everything okk but when you create repository pattern at that point interface IRepository form getall method not work
@Max-vd6fy Жыл бұрын
probably forgot something buddy, as Im doing the same project and my is working
@Grytolle Жыл бұрын
Are you sure it matters that you only have one line after the using statement?
@DotNetMastery Жыл бұрын
If it is more than one line I prefer the braces, it makes the scope more visible and cleaner.