Endpoint filters for .NET APIs [Pt 6] | Back-end Web Development with .NET for Beginners

dotnet
dotnet
8.3 هزار بار بازدید - 6 ماه پیش - View full playlist:
View full playlist: https://aka.ms/dotnet/beginnervideos/...
Get Started with .NET in VS Code: https://aka.ms/dotnet/get-started/vscode

This video covers implementing common behavior for endpoints using endpoint filters. What if we want to execute common functionality on every request sent to a given endpoint in our application? That's where endpoint filters come in. Endpoint filters follow some of the same concepts that middlewares do. But, they're different because they have unique context on the endpoint associated with our request. One common scenario for endpoint filters is input validation.

For an explanation of ASP.NET Core and .NET, check out the first video in this series: Introduction to APIs with .NET [Pt 1]...

Resources:
Follow along: https://aka.ms/dotnet/beginnervideos/...
Filters in Minimal API apps: https://learn.microsoft.com/aspnet/co...

Chapters:
00:00 - Intro
02:09 - Add endpoint filter to validate input sent to Post Todos  
07:36 - Run the application to test the filters
09:12 - Outro

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
6 ماه پیش در تاریخ 1402/11/12 منتشر شده است.
8,366 بـار بازدید شده
... بیشتر