.NET API Middleware for common functionality [Pt 5] | Back-end Web Development w/ .NET for Beginners

preview_player
Показать описание

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.

Resources:

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

Connect with .NET:

#dotnet #webapi #aspnetcore #visualstudio #visualstudiocode #vscode
Рекомендации по теме
Комментарии
Автор

So, if you are reading my comment, never do the logging example that she did here in a production application.
There are another strategies that you can use for logs, like Serilog.
Have in mid, was just an example.

pablotdvsm