public async Task RunAsync() { logger.LogInformation("JobId: {JobId}", performingContext.BackgroundJob.Id); logger.LogTrace("Test"); logger.LogDebug("Test"); logger.LogInformation("Test"); logger.LogWarning("Test"); logger.LogError("Test"); logger.LogCritical("Test"); var progress = progressBarFactory.Create("Test"); for (var i = 0; i < 100; i++) { progress.SetValue(i + 1); await Task.Delay(100); } }
public async Task RunAsync() { logger.LogTrace("Test"); logger.LogDebug("Test"); logger.LogInformation("Test"); logger.LogWarning("Test"); logger.LogError("Test"); logger.LogCritical("Test"); var progress = progressBarFactory.Create("Test"); for (var i = 0; i < 100; i++) { progress.SetValue(i + 1); await Task.Delay(100); } //Starting a job inside a job will mark it as a Continuation jobManager.Start <ContinuationJob>(x => x.RunAsync()); }