My favorite way to build services. .NET definitely stole this pattern from Node frameworks like Express/Koa.js and it's awesome. Makes it so easy to see *exactly* the path a request takes through the system, including business logic layers if you also extend this layering approach to them (like by using Optional/Maybe and chaining everything one after the other) It's just so nice to be asked why, where and when something happens to a request and then pulling up a complete journey of that kind of request though the system. It also makes it trivial to implement a sort of railway oriented approach, ie. the two paths approach. The happy path and the unhappy (request rejected for some reason) path. Since you either call the next middleware in the chain, or you return early with an error by simply not calling the next middleware.
This is an awesome tutorial. I loved the way you explained everything!
Thank you for the explanation Mohamad, I love how you are organizing your videos!
Excellent middleware description!
Good job! Why would we add the middleware as a transient and not a scoped service?
My favorite way to build services. .NET definitely stole this pattern from Node frameworks like Express/Koa.js and it's awesome.
Makes it so easy to see *exactly* the path a request takes through the system, including business logic layers if you also extend this layering approach to them (like by using Optional/Maybe and chaining everything one after the other)
It's just so nice to be asked why, where and when something happens to a request and then pulling up a complete journey of that kind of request though the system.
It also makes it trivial to implement a sort of railway oriented approach, ie. the two paths approach. The happy path and the unhappy (request rejected for some reason) path. Since you either call the next middleware in the chain, or you return early with an error by simply not calling the next middleware.
Good tutorial
God bless you!
It's time to buy a Ferarri cap :)
the cap would be here before 2025 :)
Hi Mohamad , God bless you brother .
which software are u using for drawing , thank you !
app.eraser.io
How we can assume status 500. How it is dynamic?
Assalmu alaykum,
God bless you! Why do you use MacOs operting system? You are .NET developer.
M1 chip my friend 😅
I agree 🤣
your tutorials are good but explaining fast not able to catch you, please go little slow