diff --git a/aspnetcore/fundamentals/host/hosted-services/samples/6.0/BackgroundTasksSample/Services/MonitorLoop.cs b/aspnetcore/fundamentals/host/hosted-services/samples/6.0/BackgroundTasksSample/Services/MonitorLoop.cs index dc3b57647b..2404d9c852 100644 --- a/aspnetcore/fundamentals/host/hosted-services/samples/6.0/BackgroundTasksSample/Services/MonitorLoop.cs +++ b/aspnetcore/fundamentals/host/hosted-services/samples/6.0/BackgroundTasksSample/Services/MonitorLoop.cs @@ -7,8 +7,8 @@ namespace BackgroundTasksSample.Services private readonly ILogger _logger; private readonly CancellationToken _cancellationToken; - public MonitorLoop(IBackgroundTaskQueue taskQueue, - ILogger logger, + public MonitorLoop(IBackgroundTaskQueue taskQueue, + ILogger logger, IHostApplicationLifetime applicationLifetime) { _taskQueue = taskQueue; @@ -61,7 +61,8 @@ namespace BackgroundTasksSample.Services delayLoop++; - _logger.LogInformation("Queued Background Task {Guid} is running. " + "{DelayLoop}/3", guid, delayLoop); + _logger.LogInformation("Queued Background Task {Guid} is running. " + + "{DelayLoop}/3", guid, delayLoop); } if (delayLoop == 3)