This video covers implementing common behavior for ASP.NET Core APIs using middlewares. Middlewares are a piece of code that can run before and after each request is processed. They run on all requests in a nested order. They're a super powerful way to execute common functionality on every request. ASP.NET Core comes with a collection of middlewares built-in. We can also write our own middlewares. In this video, Safia will do both.
For an explanation of ASP.NET Core and .NET, check out the first video in this series: https://youtu.be/OmUuR4GiwIE
Chapters:
00:00 - Intro
02:32 - Use built-in middleware, URL Rewrite Middleware
07:09 - Write custom middleware
10:11 - Middleware ordering
12:45 - Outro
Resources:
Follow along: https://aka.ms/dotnet/beginnervideos/repo
ASP.NET Core Middleware: https://learn.microsoft.com/aspnet/core/fundamentals/middleware/?view=aspnetcore-8.0
Series playlist: https://aka.ms/dotnet/beginnervideos/youtube/webapi
Connect with .NET:
Blog: https://aka.ms/dotnet/blog
Twitter: https://aka.ms/dotnet/twitter
TikTok: https://aka.ms/dotnet/tiktok
Mastodon: https://aka.ms/dotnet/mastodon
LinkedIn: https://aka.ms/dotnet/linkedin
Facebook: https://aka.ms/dotnet/facebook
Docs: https://learn.microsoft.com/dotnet
Forums: https://aka.ms/dotnet/forums
🙋♀️Q&A: https://aka.ms/dotnet-qa
👨🎓Microsoft Learn: https://aka.ms/learndotnet
#dotnet #webapi #aspnetcore #visualstudio #visualstudiocode #vscode