This is the first video I watched from your channel, I really like how you present the content in a way that doesn't look complex, yet can be used for a real life use case. Keep them coming Fiqri aiye ! ❤️
Hi Fiqri Thanks. Very informative. By the way lets assume there is a flag from front end to indicate hard coded blogs or rest api blogs. In such case can we have both implementations in the DI container and request required one at run time based on that flag ?
Yah.. you can change the code in the Startup.cs like this services.AddScoped(provider => { var context = provider.GetService(); var queryFlag = context.HttpContext.Request.Query["flag"].ToString(); if (queryFlag == "hardcoded") { return provider.GetRequiredService(); } return provider.GetRequiredService(); }); And use HttpClient within the class for BlogHttpService implementation.
This is the first video I watched from your channel, I really like how you present the content in a way that doesn't look complex, yet can be used for a real life use case. Keep them coming Fiqri aiye ! ❤️
Jona malli thanks a lot
On point and clearly explained, Easy to understand. Thank you so much, Keep up the good work,
Glad it was helpful!
Great... I'm waiting for the new video. can you please share the video about the mediator pattern in the .net with pros and cons
best explanation so far
Thanks a lot 👍
Thank you so much brother for your effort. Got the clear idea of dependency injection. It's really helpful. Keep up the good work. ❤
Glad it helped
Thank you for the nice detailed explanation
You are welcome!
Thanks for this ,, 🙏 need more like this.
Thankyou. දන්නෙ නැති ගොඩක් දේවල් ඉගෙන ගත්තා.
Thanks for the nice explanation. Waiting for SOLID principles. 🤟
Patta 🙏 thanks do more videos
niyamai
Great tutorial. Cleared many doubts. Thank you.
You are welcome!
Excellent 👍
Thank you! Cheers!
Very clear explanation. Thanks fiqri.
Glad it was helpful!
Thank you sir ❤
Hats off for DI
Thank you
very well explain
Thank you
application/vnd+json response ganna vidiya kiyala denna puluwan da venama video ekakin Fiqri Aiye?
Thank you Fiqri.
Glad you liked it
Great...Thank You !
Welcome!
Sehenna watinawa..... . Net tikak wedipura karannako... Node, Js resources godak hoyaganna puluwan. Eth. Net tikak hoyanna amaruyi..
Owe C# ewath patan gannawa.
Superrr!
Great vedio sir.thank you♥️
Most welcome
Superb !!!!
Thank you! Cheers!
👍👍
Hi Fiqri
Thanks. Very informative.
By the way lets assume there is a flag from front end to indicate hard coded blogs or rest api blogs. In such case can we have both implementations in the DI container and request required one at run time based on that flag ?
Yah.. you can change the code in the Startup.cs like this
services.AddScoped(provider =>
{
var context = provider.GetService();
var queryFlag = context.HttpContext.Request.Query["flag"].ToString();
if (queryFlag == "hardcoded")
{
return provider.GetRequiredService();
}
return provider.GetRequiredService();
});
And use HttpClient within the class for BlogHttpService implementation.
Thank you
You're welcome
Thank you!
You're welcome!
web api ekk krnn brida
Web api ekak thiyenawa play list eke
maru
aluth ekk
මේ අර ඌරු මස් කාලා ගෙදර උං යක්කු වගේ ගැහුව ඉස්මයිල් අයියද ? පට්ට ලෙසොන් එක .Net කියන්නේ පිස්සුවක්. ජය වේවා!
ඔව් ඔව් .. :D ජය වේවා