The new class BackgroundService is compatible with the current IHostedService interface in .NET Core 2.0. I removed the similar but nont-tested HostedService base class (it was not official from the .NET team) that we were previously using.