Chain-of-Responsibility-pattern-implemention.
The Chain of Responsibility pattern is one of the twenty-three well-known "GoF design patterns" ASP.NET Core applications uses "The Middleware Pipeline". The term “pipeline” implies that requests enter one end, are processed by each middleware component in turn, and exit the other end. In reality, the run-time behavior is a variation of the Chain of Responsibility design pattern