Asp.Net Core Middle-ware

preview_player
Показать описание
In this episode, we'll take a look at the ASP.NET Core Pipeline Middle-ware. What is it, How it works, How to build custom middle-ware and why one would use these.

In this episode, we're modifying the project we did earlier (Responsibilities of a Controller) where we used ActionResults in order to Handle Exceptions.

The source code for this project can be found at
Рекомендации по теме
Комментарии
Автор

Shiv your videos contains lots of details and its very helpful to understand key concepts. I always found them very informative. One thing I would like to know your opinion is "exposing exception type over header and giving details to client app (consumer) will also make it vulnerable to attacker".

rahulrai
Автор

I love the way you explain minor and major things which are important. Great teaching skills.

gauravmittal
Автор

Hi Shiv, I started watching your videos today. Very happy to have found such an informed resource. Your pace is refreshing as it gives time to understand and digest. All the best.

ivanvincent
Автор

Hi Shiv and thank's for the video. The first one that really explains middleware !

SupreMessage
Автор

excellent video. one of the best video regarding middleware.Good job keep it up

HemantKumar-ykjk
Автор

Hello Shiv. Finding your videos extremely helpful, thanks a lot. Do you perhaps have a talk about how to properly use "try-catch" in general, also in controllers? Particularly, I am interested to learn production scenarios benefiting some of out of box .net core functionalities on 'try-catch' blocks.

samirhasanov
Автор

Thanks Shiv really nice video. I think this Middle - wares implements Chain of Responsibility design pattern. Please correct if I am wrong. Also one request, while explaining any concept like the one in this video, please mention the design principle/pattern microsoft has used.

yatishbhavsar
Автор

I am begineer to dot net core thanks its very very very helpful :)

galaxiegalaxie
Автор

Nice explanation. My question is how next delegate( RequestDelegate) knows to invoke next middleware.

keeplearning
Автор

Thank you sir for the videos. I have two questions:
1. You did not mention custom Middleware implementing IMiddleware interface. What's the difference between the two custom Middleware implementations?
2. Using the custom Middleware you implemented in this video, What happen if more than one exception is thrown in the pipeline. As you mentioned they should not be caught anywhere else. Is it possible that the exception Middleware will only catch the last one?
Thank you for your time

DH-jwiy
Автор

Why did we add HttpContext to Exception Static method. It can exist without it as well, Am I correct ? In fact a logger is also helpful

SangramMishraMCP