MIDDLEWARE in ASP.NET Core | Getting Started With ASP.NET Core Series

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024
  • Hello friends, Middleware is a component assembled into an app pipeline to handle requests and responses. Middlewares are chained one after the other, so each of them gets to chose whether to pass the request to the next component and also perform work before and after the next component in the pipeline.
    In this video, let's learn more about in middlewares in an ASP.NET Core application, how to set up middleware, and how to set up a request pipeline using them. I will explore the different options of setting up the middleware using the Run, Use and Map methods. I will also create a custom middleware using the IMiddleware interface and look at some of the practices around creating them.
    🔗Middleware - docs.microsoft...
    🔗Built-in Middleware - docs.microsoft...
    Come say hi! ✋
    🌍 Blog - rahulpnath.com/
    ✉ Subscribe to my Newsletter - www.rahulpnath...
    🐦Twitter - / rahulpnath
    📸Instagram - / rahulpnath
    🎥 Recording Setup and Workflow - www.rahulpnath...
    Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!

ความคิดเห็น • 296

  • @RahulNath
    @RahulNath  4 ปีที่แล้ว +10

    Source Code - rahulpnath.visualstudio.com/DefaultCollection/TH-cam%20Samples/_git/aspnetMiddleware

    • @UPSCCSE-ku7ej
      @UPSCCSE-ku7ej 3 ปีที่แล้ว +1

      Awesome work Mr.Nath .......

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      @@UPSCCSE-ku7ej Thank you!

  • @carsugarmodels
    @carsugarmodels ปีที่แล้ว +3

    Man you are awesome! Your
    ability to describe and clarify things is unbelievable.

  • @sojans.r9025
    @sojans.r9025 ปีที่แล้ว +1

    Very crisp and clear explanation of the concepts. Thank you so much!

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Glad it was helpful Sojan! Do check out the full series bit.ly/asp-net-core-series

  • @umarfaruq9888
    @umarfaruq9888 ปีที่แล้ว

    You are too good man. I like to have such level of deep understanding. Very fluent speaking unlike most of the "Desi" guys.

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      So nice of you and glad you are liking the videos. Hope you are enjoying the series bit.ly/asp-net-core-series

  • @siddharth3837
    @siddharth3837 2 ปีที่แล้ว +4

    One of the greatest tutorial for middleware. Removing all default code and explaining how it all works is amazing. I wish I came to know about you before. I also like you didn't waste any time in the intro and directly jumping into middleware.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Thank you Siddharth! Glad you like it - Do check out the full series bit.ly/asp-net-core-series I’m sure you’ll like it

  • @shreesusma7679
    @shreesusma7679 2 ปีที่แล้ว

    Hello Rahul, Thanks for the video.I have never seen any youtube videos explaining in such a clear and precise way.Thanks a lot.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you for the wonderful comment Shree. The full ASP Series is here bit.ly/asp-net-core-series

  • @SahanSerasinghe
    @SahanSerasinghe 4 ปีที่แล้ว +15

    Thanks for the crystal clear explanation Rahul! I really liked how you started from a blank Configure method and started diving deeper into the concepts 👏 Keep up the awesome work!

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว +1

      Thank you Sahan for letting me know!

    • @k7raman
      @k7raman 3 ปีที่แล้ว

      Yes , this way of explanation will give deeper understanding.

  • @miyazakizachary5108
    @miyazakizachary5108 2 ปีที่แล้ว +1

    By far the best explanation on asp.net core middleware. Thanks a lot.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad it was helpful! Do check out the full series here bit.ly/asp-net-core-series

  • @dheeraj0076
    @dheeraj0076 2 ปีที่แล้ว +3

    One of the best tutorial I found on internet explaining middleware. Lucid and clear explanation. Thanks Rahul

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      You're most welcome Dhiraj. I'm sure you will like the other videos in this series bit.ly/asp-net-core-series

  • @VinayKumar-qu1eg
    @VinayKumar-qu1eg 4 ปีที่แล้ว +4

    Simply awesome. I don't remember any other tutorial explained middleware this well.

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Thanks Vinay!

  • @sbitaxi
    @sbitaxi 3 ปีที่แล้ว +1

    I am only 5 minutes into this video and I already think this is great.
    A fine introduction to middleware in Aspnetcore, thank you. It makes it very clear what this does.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad it was helpful! I am sure you will enjoy the series here th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @wchishti
    @wchishti 3 ปีที่แล้ว +1

    Thank you. Your video made it very easy for me to understand the "middleware magic"

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      You're very welcome!

  • @daryoes
    @daryoes 4 ปีที่แล้ว +1

    Great job, you voice does not matter , your teaching is great!

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Awesome thanks! Is my voice hard to follow (fast, slow or my accent in general) 😀

  • @prasannavenkataswamy347
    @prasannavenkataswamy347 ปีที่แล้ว +2

    Rahul you are doing a great job of teaching. Please keep up the good work 👍

    • @RahulNath
      @RahulNath  ปีที่แล้ว +1

      Thanks a lot Prasanna! hope you are liking the full series bit.ly/asp-net-core-series

  • @k7raman
    @k7raman 3 ปีที่แล้ว +2

    I think second way of visual representation of middleware will make more sense to understand the whole picture for beginners. Again thank you for good tutorial 👍🏾

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thanks for sharing and glad you liked it!

  • @pardhasaradhivasamsetty7693
    @pardhasaradhivasamsetty7693 ปีที่แล้ว

    Rahul, you are an amazing person. The details provided by you is excellent and it is helping us a lot. Thank you.

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Thanks a ton and so nice of you Pardhasaradhi. Hope you are enjoying the full series bit.ly/asp-net-core-series

  • @8692Manish
    @8692Manish ปีที่แล้ว

    Dude!!! you are amazing. you covered all minor things quickly with practically. Thanks for this amazing delivery of topic.

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Glad you like it Manish! Do check the full playlist here bit.ly/asp-net-core-series

  • @owns3
    @owns3 2 ปีที่แล้ว

    started the video confused by your voice - thanks for address it. Love this asp.net core series! thanks for creating it!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @waleedbintariq1840
    @waleedbintariq1840 2 ปีที่แล้ว +3

    I have been watching your videos lately and I have to say, they are amazing. Your style of delivery and the way you cover all the scenarios is really helpful. Well done and keep on making these awesome videos.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Glad you like them Waleed! The full series is here bit.ly/asp-net-core-series
      And do let know if you have any topic suggestions or other feedback

    • @waleedbintariq1840
      @waleedbintariq1840 2 ปีที่แล้ว

      @@RahulNath Thankyou Rahul. The playlist will be really useful to me.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      @@waleedbintariq1840 Great - do let me know your feedback and comments 😀

  • @sindhujakelam2289
    @sindhujakelam2289 ปีที่แล้ว

    Thank you so much Rahul for this in depth explanation on basic key functions. It was very useful .

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Glad it was helpful Sindhuja! do check out the full series here bit.ly/asp-net-core-series. I'm sure you'll like them

  • @bhavyashah8847
    @bhavyashah8847 4 ปีที่แล้ว +10

    underrated
    you deserve a larger audience

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว +1

      Thanks Bhavya for your support!

  • @DebasmitSamal294
    @DebasmitSamal294 3 ปีที่แล้ว +1

    what an lecture. Excellent and awesome. Clear explanation

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad you liked it, Thank you!

  • @gokulakrishna3389
    @gokulakrishna3389 ปีที่แล้ว

    Thank you for posting such great content. being new to aspnet core, able to understand the concepts easily , got good understanding.

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Glad you found it useful Gokula. Check out my popular series here twitter.com/rahulpnath/status/1499626419357630466?s=46&t=wSkKEQWaSZcms4Lm29QHyA

  • @ThusanthaNandDeSilva
    @ThusanthaNandDeSilva 2 ปีที่แล้ว

    Thanks very much Rahul for this beautiful presentation on Middleware. I must commend that your presentation is super excellent.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      You are most welcome! Do check the full series here bit.ly/asp-net-core-series

  • @ashishshiwalkar1903
    @ashishshiwalkar1903 2 ปีที่แล้ว +1

    Excellent video, lot of information conveyed , Please also make one video on asp core request life cycle and application life cycle.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you Ashish! Checkout my ASP Series I cover in detail the different aspects of ASP NET in detail bit.ly/asp-net-core-series
      Let me know if that helps or if you have specific questions/areas to be covered.

  • @dotnetdeveloper288
    @dotnetdeveloper288 3 ปีที่แล้ว +2

    I shared your channel with my friends for best learning purpose. Great teaching skills with live examples.....

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      That is amazing and thank you! Happy to hear that 😀

  • @ziaurrahman8776
    @ziaurrahman8776 ปีที่แล้ว +1

    Its always interesting to see you teaching the concepts in deep and in very precise way.

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Glad you think so Ziaur! Hope you are enjoying the full series bit.ly/aws-net-series

  • @jaykaneria5895
    @jaykaneria5895 ปีที่แล้ว +1

    Hi Rahul, I just started with this series and I really appreciate how in-depth you go while explaining the concepts. Thank you so much for this. One question - Do you have any document for these concepts that can be used to go through qucikly during an interview preparation to revise these concepts? Thanks again.

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      You're very welcome Jay! most of these are based of the official Microsoft docs. I try and put the relevant links to the doc in the video links. Good suggestion thought with providing a concise pocket guide for reference kind of document. Will see if I can put something together. Good luck with your interviews.

  • @НереальнаяАвстралия
    @НереальнаяАвстралия 3 ปีที่แล้ว +2

    Thank you, Rahul! You explain things very well!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you and happy for it! Do check out the other videos in this series th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @ahmedbasha4174
    @ahmedbasha4174 3 ปีที่แล้ว +2

    Thanks for the clear explanation, hope you will get more subscribers. Keep making videos like this....

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Ahmed. Happy these are helpful 😀

  • @prateekbhardwaj9943
    @prateekbhardwaj9943 3 ปีที่แล้ว +1

    your video is not copy-paste. very clear and concise, good voice modulation and you used a good mic... going to subscribe your channel.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Prateek. Happy that you like it. Yes, I put in a lot of time to come with the flow to introduce the various concepts within a topic. I believe the way topics are introduced matters.
      You might like the other videos in this series th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @shashanck84
    @shashanck84 2 ปีที่แล้ว

    This is awesome, in-depth, and easy to understand. Thanks a lot, Rahul.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Most welcome! Do check out the full ASP Series here bit.ly/asp-net-core-series

    • @shashanck84
      @shashanck84 2 ปีที่แล้ว

      yes going through them and they are great. I wish I could have found this earlier.

  • @1dfe-4e68-bd9f
    @1dfe-4e68-bd9f 2 ปีที่แล้ว +1

    Thank you Rahul! Please always enable subtitles (autogenerated) because not of all us have good english

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Thank you ! I haven't turned off captioning. For some videos TH-cam is not able to auto-generate this (support.google.com/youtube/answer/6373554?hl=en#zippy=%2Cautomatic-captions-on-long-form-videos-and-shorts). Guess it might also be because of accent 😀In case any of it is confusing feel free to drop a comment!

  • @TrivenSharma
    @TrivenSharma 3 ปีที่แล้ว +2

    This is brilliant, thanks for sharing your knowledge.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Awesome thanks! Do check out the full series here Triven 😀 th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @akashlondhe1110
    @akashlondhe1110 3 ปีที่แล้ว +1

    Hey Rahul, Your videos are awesome and in very perfectly explained in depth. Please bring more videos on .net core ...❤️👍

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Akash. Sure I will. Hope you have come across the other videos in this series th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html
      Do let me know your feedback if you get a chance to watch those. More are on the way and do let know if you have specific topics to be covered!

  • @vijayabhaskarreddymarepall1369
    @vijayabhaskarreddymarepall1369 2 ปีที่แล้ว +1

    I have rarely seen these kind of videos . Your video is crystal clear and provides in depth knowledge of the topic . Thanks so much and soon you will reach more than million subscribers if you continue the same . Really appreciate all your efforts

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      thank you and happy you liked the video. Do check out the full series bit.ly/asp-net-core-series Sure you will like them.

  • @akanshamangal8781
    @akanshamangal8781 3 ปีที่แล้ว +5

    The explanation here is crystal clear. Glad that I found this tutorial!
    Also I would like to request you if you can make a tutorial with a small real time project, that'd be a great help :)

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +6

      Glad it helped Akansha and thank you for the comment. I have lots of videos under my ASP Net Core API Series here th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html
      Do let know if you have any specific topics that you are looking for. Also I will try and do an end end small real time project some time as well, pulling together all the required aspects of building an application.

  • @vidittyagi9872
    @vidittyagi9872 3 ปีที่แล้ว +1

    wow, what a explanation Rahul. Big fan of you.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Vidit!

  • @trending_reels_viral_6657
    @trending_reels_viral_6657 4 ปีที่แล้ว +4

    Nice Explanation and informative too. It would be great if can can prepare a tutorial on Delegates and how to use them.

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว +2

      Glad it helped and great suggestion. I will it to my list!

    • @tejaswinisuryawanshi873
      @tejaswinisuryawanshi873 2 ปีที่แล้ว

      @@RahulNath could you please upload delegate video

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      @@tejaswinisuryawanshi873 Any specific use cases you are looking at with delegates?

  • @AngelPerez-pp2hj
    @AngelPerez-pp2hj 2 ปีที่แล้ว

    Thank you so much!!! Greetings and blessings from Perú!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Thank you Angel! Happy you liked it. Do check out the full series here if you haven't already bit.ly/asp-net-core-series

    • @AngelPerez-pp2hj
      @AngelPerez-pp2hj 2 ปีที่แล้ว

      @@RahulNath I will see them all! ❤👍

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Do let me know if you have any suggestions and feedback!

  • @thariqe2147
    @thariqe2147 4 ปีที่แล้ว +1

    Hi Rahul,
    Your sessions are very good. It's simple and perfect. Thank you for helping me to understand the concepts.

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Thank you Thariq and happy it helps! Do let me know in case you have any topics that you want me to cover.

  • @IndiaThatIsBhaarat
    @IndiaThatIsBhaarat 4 ปีที่แล้ว +2

    Simple and crisp explanation!! Keep up the good work!!

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Thank you Manish😀

  • @feelil
    @feelil 2 ปีที่แล้ว

    Very Simple and clear explanations. Thanks.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Glad it was helpful Ilhan! Do check the full series here if you haven't already bit.ly/asp-net-core-series

  • @shubhankarpaul2740
    @shubhankarpaul2740 3 ปีที่แล้ว

    Thank you Rahul , this is the most Outstanding video I have ever seen on dotnet core

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you and glad you like it. Do check out my ASP NET Core series here th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html
      I’m sure you will like the other videos.

    • @shubhankarpaul2740
      @shubhankarpaul2740 3 ปีที่แล้ว

      @@RahulNath yes sure I'm watching all of that

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      @@shubhankarpaul2740 Do let me know your comments and if you want any specific topics covered.

  • @bschaatsbergen
    @bschaatsbergen 3 ปีที่แล้ว +1

    Thanks @Rahul Nath, great video.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Awesome, Thank you Bruno!

  • @yogeshbondi7321
    @yogeshbondi7321 3 ปีที่แล้ว +1

    Great video bro. Thanks for the detailed explanation ✌

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad you like it , Thank you Yogesh!

  • @arminsh7068
    @arminsh7068 4 ปีที่แล้ว +1

    Wow, Done with delicacy and skill.

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Thanks Armin!

  • @jonk1446
    @jonk1446 3 ปีที่แล้ว +1

    Fantastic video! You are a really great teacher! Thanks!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Wow, thank you Jon!

  • @vignashvideos2183
    @vignashvideos2183 หลายเดือนก่อน

    Thank you for your efforts. Nice Video.

  • @KrishanSamarawickrama_BatMan
    @KrishanSamarawickrama_BatMan 3 ปีที่แล้ว +1

    Thank you for a clear explanation. 👏

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad it was helpful Krishan. Do check out the other videos in this series th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @shreyasacharya
    @shreyasacharya ปีที่แล้ว

    .net wars, the legend strikes back :) excellent video, big fan!

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Glad you enjoyed Shreyas! The full series is here bit.ly/asp-net-core-series

  • @rajusarmah4716
    @rajusarmah4716 3 ปีที่แล้ว +1

    That's really informative and great explanation. Thanks for sharing the information. Keep up the good work and awaiting for more informative videos.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Raju and glad you liked it .Do check out my other videos in this series th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @keithmar5996
    @keithmar5996 2 ปีที่แล้ว

    Nice job. Learning a lot from your videos.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad to hear it Keith! The ASP NET Series is here bit.ly/asp-net-core-series

  • @1dfe-4e68-bd9f
    @1dfe-4e68-bd9f 2 ปีที่แล้ว +1

    thank you very much! great tutorial👌

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      You're welcome and happy it helped! hope you have checked out the other videos in this series bit.ly/asp-net-core-series

  • @sekharkatreddy8491
    @sekharkatreddy8491 ปีที่แล้ว

    Your videos are excellent in terms of content and explanation. I think this middleware implementation is a kind of "Chain of Responsibilities" pattern rather than "Decorator pattern"

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Thank you Sekhar and for pointing out the pattern name.

  • @emaus8344
    @emaus8344 2 ปีที่แล้ว +1

    Great! Do you have any tutorials on building real-world app on any platform? It would be great to follow along with your cristal explanation. That way it would be easier to connect the dots...I wouldn't mind if I had to pay.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Not yet! Glad you are liking these videos - Currently all my content on ASP is here bit.ly/asp-net-core-series

  • @niroshanmanoharan4295
    @niroshanmanoharan4295 3 ปีที่แล้ว

    Thank you very much for the great informative video Rahul Nath. 👏

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      So nice of you, happy it helped!

  • @PrafullakumarSahuprofile
    @PrafullakumarSahuprofile 2 ปีที่แล้ว

    Rahul the way you explained everything it's pure gold. I am planning to complete this playlist. I am pretty much glad that I found you. Don't stop posting such content. If possible create some playlists with different topics. Subscribed 😍 also hit that notification bell 😜 for your videos.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you Praful! Hope you are enjoying the videos! Do drop in if you have any specific video/topic suggestions.

  • @vitahvitah5823
    @vitahvitah5823 2 ปีที่แล้ว +1

    Perfect explanation

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you think so Vitah! Do check out the full series bit.ly/asp-net-core-series

  • @deivamanidhandabani9505
    @deivamanidhandabani9505 2 ปีที่แล้ว +1

    Hi Rahul,
    Hope you are doing great!
    I'm continuously watching your technical videos.
    I had doubted for a very long time could you please explain.
    Let's say, by using HttpPost verb for saving resources/details in the database and we use HttpPut for updating, HttpGet for getting the details from the database, HttpPost to save data in the database and HttpDelete for Deleting a record from the database.
    But why we should use different verb for like
    Get- HttpGet
    Save - HttpPost
    Update - HttpPut
    Delete - HttpDelete
    Could you please explain and Thanks in advance.
    Thanks,
    Deivamani

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Yes you can achieve the same with one header verb (any of them) but it's more about following a standard. This makes it easy to work with APIs and is in line with the HTTP standards. Anyone consuming your APIs within your team/external/new member would all know this convention by default and not something that needs relearning. Read about Richardson Maturity Model here martinfowler.com/articles/richardsonMaturityModel.html. It explains it a bit further.
      Hope that helps.

  • @maheshlakshmanan8061
    @maheshlakshmanan8061 3 ปีที่แล้ว

    Adi Poli Explanation Rahul...

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      adi poli 😀 Thank you Mahesh

  • @vikasjaiswal3729
    @vikasjaiswal3729 3 ปีที่แล้ว +1

    Thanks Rahul Nice Explaination

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Vikas! Glad you liked it.

  • @nitishbijalwan
    @nitishbijalwan 2 ปีที่แล้ว

    Thanks for the video, it's very helpful.
    Could you please let me know the books or blogs which we can follow to have such deep knowledge?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you. For these videos I've been mostly using the Microsoft docs. As for books suggestions I have a few here (not directly related to .NET though) www.rahulpnath.com/blog/language-agnostic-books-for-every-developer-2/
      Let me know if you have additional questions.

  • @SajidAliSoftwareEngineer
    @SajidAliSoftwareEngineer 3 ปีที่แล้ว +1

    awesome Rahul Nath, very informative video and unique content you are creating I like it.
    can you please create in detail video for scops(AddScoped,AddTrasient,Singleton)
    Thank you.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Sajid and happy that you like the content. I have on Dependency Injection here th-cam.com/video/YR6HkvNBpX4/w-d-xo.html and also one one on Dependency Inversion here th-cam.com/video/43fg4T4iFGw/w-d-xo.html.
      You can find the full ASP NET Core Series here th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html
      Let know if that helps.

  • @rubeushagrid4131
    @rubeushagrid4131 3 ปีที่แล้ว

    The flow of data among the middlewares is the most important

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Ok. Did you find that not covered in the video? Any suggestions.

  • @tesszheng4586
    @tesszheng4586 ปีที่แล้ว

    Just 2 mins into watching the video, I can't wait to give you a thumb up

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Awesome thank you Tess. Do check out the full series bit.ly/asp-net-core-series

  • @maheswarreddy.madithati
    @maheswarreddy.madithati 2 ปีที่แล้ว

    I always feel lucky when a find your tech video. Very good videos.It would be good if you zoom your content or make font bigger. Thanks

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad to hear that Maheswar. Curious what device/resolution do you generally watch?
      Between you can find my full ASP Series here bit.ly/asp-net-core-series

  • @saturninramirez1107
    @saturninramirez1107 2 ปีที่แล้ว +1

    excelent ! thank you Mister

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      You are welcome Saturnin! Do check out the full series here bit.ly/asp-net-core-series

  • @barwalgayatri4655
    @barwalgayatri4655 3 ปีที่แล้ว +1

    At what time u wake up Brothe r ?? all ur tutuorials are Records=ed Early morning :) . Thank u foe Detail Teaching :)
    Too good

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you and happy you are liking it! Yes all videos are made between 4 - 5 30 when the house is quietest 😀 More details on waking up and habits here twitter.com/rahulpnath/status/1393992168579104773?s=20

  • @ras90it
    @ras90it 2 ปีที่แล้ว

    Awesome Explanation

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you like it Raseeth. Do check out the full series. I am sure you will like it bit.ly/asp-net-core-series

  • @vijay_kishan
    @vijay_kishan 2 ปีที่แล้ว

    Great video buddy!!! Can you make a video on how to get in-depth knowledge about .net core and Azure?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Glad you like it Vijay! Hope you’ve checked out my full playlist here th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html
      What specific things are you looking to increase your knowledge on?

  • @FaizlMuhammed
    @FaizlMuhammed 2 ปีที่แล้ว

    Thanks Rahul I was Able to bridge gaps for middle ware.
    I created a custom logging middleware which is used to log user information to app insights. My doubt is Shall I rely on JWT token' to extract the requested user details?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      thank you Faizal. Hope you resolve this out.

  • @sub_zero_911
    @sub_zero_911 3 ปีที่แล้ว +1

    Quick question, so both Map and MapWhen don't merge back into the main pipeline?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Yes, that is correct - You can read more on it here docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-3.1&WT.mc_id=AZ-MVP-5003875#branch-the-middleware-pipeline.
      Hope that helps!

    • @sub_zero_911
      @sub_zero_911 3 ปีที่แล้ว +1

      @@RahulNath Thanks bro!

  • @renraj9760
    @renraj9760 2 ปีที่แล้ว

    Hi Rahul
    Thank you for this great tutorial. Is there any tutorial explaining about await Task Task.whenall like that and when we actually need to make a call async await etc..

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Not yet, added it to the list. Thank you for the suggestion.

  • @sabitkondakc9147
    @sabitkondakc9147 3 ปีที่แล้ว

    Nice Explanation Rahul, I think it's better to check out some topics on Task Library ,Async Threads , Parallel Programming, TPL and PLINQ before moving further into Middleware.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Sabit, Yes I will be covering some of those topics in the future.

  • @pranavb9768
    @pranavb9768 2 ปีที่แล้ว

    Which request do middlewares process could you please tell something about the bigger picture of the middlewares itself?

  • @anilnarayan127
    @anilnarayan127 2 ปีที่แล้ว

    Very well made video. Thanks!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you liked it Anil! Hope you checked out the full playlist bit.ly/asp-net-core-series

  • @mithransavadamuthu9520
    @mithransavadamuthu9520 11 หลายเดือนก่อน

    super explanation great Rahul

    • @RahulNath
      @RahulNath  10 หลายเดือนก่อน

      Glad you like it. Hope you are enjoying the series bit.ly/asp-net-core-series

  • @AftabAhmad-vm4ns
    @AftabAhmad-vm4ns 4 ปีที่แล้ว

    Thanks Mr. Rahul, your asp.net core series are very good and clear understanding. Can you make real time small project using .net core with api.

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว +1

      Thank you Aftab and glad you like it. Sure I will build a real time project, once I have the building blocks covered out, that is the idea.

  • @NiteshSinghyoyo
    @NiteshSinghyoyo 2 ปีที่แล้ว

    Great video and well explained!!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you liked it Nitesh! Hope you are enjoying the series bit.ly/asp-net-core-series

  • @nileshtiwalkar9437
    @nileshtiwalkar9437 4 ปีที่แล้ว +1

    Very useful can you build real time project with all .net core terminology like onion architecture, CQRS,Mediator, fluent validation, entity framework core etc

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว +1

      Thanks Nilesh for your feedback and glad you liked it. Yes that is my plan with this series. I will be walking through different aspect and building up an application uisng the mentioned patterns. Subscribe to stay notified when I post next. Also do drop in if you have other areas that you want to be covered.

  • @rameshgywali2809
    @rameshgywali2809 ปีที่แล้ว

    thannk you for your precious time and efforts made

    • @RahulNath
      @RahulNath  ปีที่แล้ว +1

      So nice of you Ramesh! Hope you are enjoying the series bit.ly/asp-net-core-series

    • @rameshgywali2809
      @rameshgywali2809 ปีที่แล้ว

      @Rahul Nath yes sir and one request if you can do actually i just was watching middleware only amd i was seeking for entire middleware setup for dotnet core, dotnet core mvc and adding new api in dotnet core project and run that on swagger i am onfused and seeking for such will you please help me or if any of your video contains so just tell me which one sir thank you

  • @starman9000
    @starman9000 4 ปีที่แล้ว +1

    Rahul, Great content, please do cover design pattern as well. Can you please make video on real life scenario on middle ware please? Thank you.

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Thank you Jay. Did you have specific design patterns in mind? Also anything particular with middleware that you are looking for? I will be covering Authorization, Routing etc which builds on top of the middleware pipeline.

    • @starman9000
      @starman9000 4 ปีที่แล้ว +1

      @@RahulNath I would like to see Strategy and Factory pattern with Dependency injection, Sorry, if i am greedy 😇

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      @@starman9000 Sure will add it to my list - Can't promise when it will be though. I might start live streaming some of these so that I can save time on editing. I will post on the channel and my blog when I start doing it.

  • @rohanganotra9840
    @rohanganotra9840 3 ปีที่แล้ว +1

    Amazing Video

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Rohan. Do check out the full series here th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

    • @rohanganotra9840
      @rohanganotra9840 3 ปีที่แล้ว

      @@RahulNath Perfect, I'll watch these, Thanks a lot.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      @@rohanganotra9840 Cool, do let me know how you find them and in case you have any topic suggestions 😀

  • @PasinduBroomer
    @PasinduBroomer 2 ปีที่แล้ว

    great content man. Good luck

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thanks, you too!

  • @uchitesting
    @uchitesting 2 ปีที่แล้ว +1

    I am trying to follow up with .NET 6 and the code is different. So far so good, but when I try to comment out part of the code to make it close to the content of the video it won't run.
    Basically there is an app.Map I commented to just pass this line:
    app.Run(async context => await context.Response.WriteAsync("Hello World!"));
    Now the application does not display but terminates instantly. I just tried to add another empty app.Run() and now it executes.
    Why is that? Why can't I simply put the line above and have a window display?
    I tried to duplicate the line above and it won't run neither. It seems that on .NET 6 you must finish with that empty Run() no matter what.
    Also not putting anything simply won't compile because without the beginning
    var builder = WebApplication.CreateBuilder(args);
    statement, the compiler finds no static Main().
    Having just that line exits as before (return 0).
    Very interesting. I'm going to on now and edit this if needed.

    • @uchitesting
      @uchitesting 2 ปีที่แล้ว +1

      Played with Use() Middleware
      Made 3 in a row and output it.
      This is the sequence.
      Before Request 1
      Before Request 2
      Before Request 3
      After Request 3
      After Request 2
      After Request 1
      All this sounds a bit like Matroskas which is how I got decorator pattern explained.
      But the idea of deciding if we send the request further looks like chain of responsibility pattern to me.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      I guess you are right - stackoverflow.com/questions/48851112/is-the-chain-of-responsibility-used-in-the-net-framework

  • @Netherlands031
    @Netherlands031 3 ปีที่แล้ว

    I really like that you show us the framework source code, and start from a very simple program to build it up, but for me the explanations were too concise, I had to rewatch some parts several times and still I feel like I understand it 50%. For example the two ways of activating middleware at 15:20 - one gets passed the db context when invoked, one doesn't?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you for your feedback and I will try and elaborate on the topics. Some of my recent videos are less dense I guess, but will be happy to get your comments too. As for the dbContext, yes that is correct. The Convention based pattern does not use Constructor Injection, whereas the Factory based pattern does. you can read more about it here if that helps docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/extensibility?view=aspnetcore-5.0&WT.mc_id=AZ-MVP-5003875.

    • @Netherlands031
      @Netherlands031 3 ปีที่แล้ว +1

      @@RahulNath Cool, thanks for getting back to me, I'll watch a few more because they're definitly insightful!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Sure, do let know!

  • @kedar10
    @kedar10 4 ปีที่แล้ว

    Very nice and to the point.

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Glad you liked it!

  • @SivarajSiva322
    @SivarajSiva322 ปีที่แล้ว

    Amazing video!!!👏

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Glad you liked it!! Hope you are enjoying the series bit.ly/asp-net-core-series

  • @ahmadaskar3360
    @ahmadaskar3360 ปีที่แล้ว +1

    what do you use to draw your diagrams?

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      I used powerpoint for 8:47 if that was what you were asking about

  • @kia3d
    @kia3d 3 ปีที่แล้ว

    Like always awesome video! thanks for that
    Technically it is awesome. But I think the presentation must be a bit more engaging Rahul, having ups and down in your tone, a bit entertaining with some occasional smiles or funny comments may be.
    Otherwise I love your channel personally keep up the good job

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +2

      Thank you Kiarash and happy you like the content. And I totally agree to you on the presentation side. I really need to work on that and have some plans in place. Hopefully soon I will get better at it. Thank you again for the valuable feedback and the support! 😀

  • @Napo4k
    @Napo4k 2 ปีที่แล้ว

    Great tutorial!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you liked it - Do check out the full series here bit.ly/asp-net-core-series

  • @seldomseen_78
    @seldomseen_78 3 ปีที่แล้ว

    This is golden!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Love the comment! Thank you 😀

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Also do check out other videos in the series - th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html

  • @gadielacdc06480673m
    @gadielacdc06480673m 3 ปีที่แล้ว

    you are aweme man! god bless you!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Made my day Gadiel. Thank you a lot and happy that it is helpful!

  • @arghasen6535
    @arghasen6535 2 ปีที่แล้ว

    Hi rahul , is HttpContext object is thread safe inside the custom middleware?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      It depends on how you are using this - This link might provide some more info docs.microsoft.com/en-us/aspnet/core/fundamentals/http-context?view=aspnetcore-6.0&WT.mc_id=AZ-MVP-5003875#httpcontext-access-from-a-background-thread
      Let me know if that helps

    • @arghasen6535
      @arghasen6535 2 ปีที่แล้ว +1

      @@RahulNath actually I have created a middleware where I am intercepting every http request to extract some field from the request, but sometime the request body is coming empty but it's properly acting on the controller level, so I have no clue why intermittently the request body is coming empty in middleware invokeAsync method

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      @@arghasen6535 That's strange. Are you able to setup a minimal demo sample to reproduce the issue?

    • @arghasen6535
      @arghasen6535 2 ปีที่แล้ว

      @@RahulNath It can't be reproduced with 5 to 6 request if I hit, let's say 500 request per second then this thing is happening.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      @@arghasen6535 Is it the same request/payload or is it a case of a bad request itself? Hard to tell without seeing what's happening

  • @manojmaheshari6005
    @manojmaheshari6005 3 ปีที่แล้ว +1

    When user request any URL from Brower to IIS then How IIS come to know where to go and what to execute
    ?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Check out the video on Routing - th-cam.com/video/3t-As0YBVh0/w-d-xo.html
      and also on Model Binding th-cam.com/video/bxksp575pk8/w-d-xo.html
      Let know if that helps.

  • @knandedk
    @knandedk 4 ปีที่แล้ว +1

    It could have been nice to know with real world examples as to when to use app.Map , app.MapWhen. But really good video

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว +1

      Thank you, Kiran for the feedback and glad you liked the video. The intent of this video was to provide an understanding of the basic building blocks that is available as part of the middleware support in ASP NET Core. Also, I wanted to keep it short as possible, which is why I have not included any real-world examples. If you have any specific questions on usage between the two, feel free to ask and I can try and help. Thanks again!

    • @knandedk
      @knandedk 4 ปีที่แล้ว

      @@RahulNath Honestly i didnt understood when exactly to use app.map and app.mapwhen

    • @Netherlands031
      @Netherlands031 3 ปีที่แล้ว

      @@knandedk maybe to provide separate paths for logged in users and non-logged in clients (mapwhen used to check for logged in-status), and map based on URL to provide a completely separate middleware pipeline for /admin

  • @igorlira7330
    @igorlira7330 2 ปีที่แล้ว

    Amazing!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you! Cheers! Glad you are enjoying the series bit.ly/asp-net-core-series

  • @nishanths3542
    @nishanths3542 3 ปีที่แล้ว

    Hi Rahul, could you explain custom exception middleware and how to handle try catch block inside middleware???

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +2

      Thank you for the suggestion Nishanth and Sure will do. Meanwhile you can look at this post for an example ankitvijay.net/2021/04/21/consistent-error-handling/

    • @nishanths3542
      @nishanths3542 3 ปีที่แล้ว

      Thank you Rahul

  • @keeplearning1564
    @keeplearning1564 3 ปีที่แล้ว

    Hi Rahul, how the request delegate knows to call next piece of middleware in app.use extension method.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      The framework passes in the next middleware in line to the next parameter. This is based on the order they are registered in. Does that answer your question?

    • @keeplearning1564
      @keeplearning1564 3 ปีที่แล้ว +1

      @@RahulNath can you explain next delegate a little. I thought next delegate knows how to call next middleware. But it seems framework is doing it. Then next delegate is just to tell framework to call next piece of middleware?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      _ @keeplearning As from the doc here docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-5.0&WT.mc_id=AZ-MVP-5003875
      _Each middleware component in the request pipeline is responsible for invoking the next component in the pipeline or short-circuiting the pipeline_
      Does that help?