CancellationToken not working in ASP.NET Core Web API HostedService
I have an ASP.NET Core 8 Web API that has a HostedService
and a controller. The controller uses an interface that the HostedService
also implements so that the service may be started, stopped, or restarted. By default, the intent is for no intervention.