Middleware and Filter are extensively used in ASP.NET Core application and some of the tasks like Authenticating the incoming request, logging the request and response,
This post is to about hosting your ASP.NET Core application as Windows Service. This implementation is not relevent on dotnet core, since Windows service feature