Moving to .NET Core: HttpModules to Middleware