private static async Task RunImplAsync(this IJobHost host, CancellationTokenSource cts) { using (host) { foreach (var job in host.Jobs) { Console.WriteLine($"Running job - {job.GetName()}"); } await host.StartAsync(cts); } }
public Task StartAsync(CancellationToken cancellationToken) { _logger.LogInformation("Starting JobHost"); return(_jobHost.StartAsync(cancellationToken)); }