public async Task StopAsync(CancellationToken cancellationToken) { _logger.LogInformation("Stopping up the service"); await ClearQueues(); await _jobHost.StopAsync(); _logger.LogInformation("The service has been stopped"); }
public Task StopAsync(CancellationToken cancellationToken) { _logger.LogInformation("Stopping JobHost"); return(_jobHost.StopAsync()); }