ASP.NET Core Middleware, Pipeline & I have built a knockoff | Build a Library with me - VIII

Опубликовано: 15 Октябрь 2024
на канале: Code with Saar
363
12

ASP.NET Core middleware forms up a pipeline to process every request / response. Each one chooses whether to pass the request to the next component in the pipeline and could perform work before and after the next component in the pipeline.

Resources

Discord server for Code w/ Saar:   / discord  

Example code for the topic: https://github.com/xiaomi7732/CodeWit...

Official documents for middleware: https://docs.microsoft.com/en-us/aspn...

Quiz

What is a pipeline?
What is a middleware?
What is a short-circuit?
Does the order matter in terms of adding middleware to the pipeline & Why?

Chapters

00:00 Intro
00:43 Showoff Pipeline Knockoff
01:45 What is ASP.NET Core Pipeline & What is Middleware
03:41 How to use ASP.NET Core Pipeline - Static Files middleware example
05:04 How do I design my pipeline
07:20 Implement the design
09:51 Optimize the pipeline