Write your own ASP.Net Core middleware classes

preview_player
Показать описание
In this video we build on what we've learned about APS.Net Core middleware and we demonstrate how to create custom middleware classes in which we can add our own logic. If you are new to ASP.NetCore middleware, you may want to check our previous videos on this topic.

Рекомендации по теме
Комментарии
Автор

All the 3 videos on Middleware are very good to understand the concept. Thank you, Sir!

alshafareen
Автор

you deserve much more subscribers! keep the good work up

joy-pydu
Автор

Awesome video ! Give us more stuffs, your explanation is clear and easy to understand. Very good job

mariusbidireac
Автор

Beautiful Explanation .For the sake of making it a little more intresting I want to add something.
The Invoke mthod with return would not allow to add logic while returning back in the pipeline
It should be
public async Task Invoke(HttpContext context)
{

{"
await from custom middle ware ");
}
await _next(context);
await from custom middle ware while returning");

}

pradeepsharma
Автор

can I add middleware to asp.net/mvc program please

teenasam
Автор

Hi, when using .net core 3.1 the custom middleware context.Request.Path is not working. Even after changing the Request.Path is still not able to route to the new path. Any way to resolve this?

BernardPhua