mithunvp.com
ASP.NET Core Middleware - Writing a Custom middleware in Web API
Writing Custom ASP.NET Core middleware in an ASP.NET Core Web API. Use Dependency Injection for using repositories in controller, read HttpContext headers