Skip to content

Commit

Permalink
chore(sample): add logging statements to service Start/Stop methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Kops committed Dec 12, 2024
1 parent c2d7188 commit 23e22e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sample/Atc.Hosting.TimeFile.Sample/TimeFileScheduleWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ public TimeFileScheduleWorker(
public override Task StartAsync(
CancellationToken cancellationToken)
{
logger.LogInformation("Started");
return base.StartAsync(cancellationToken);
}

public override Task StopAsync(
CancellationToken cancellationToken)
{
logger.LogInformation("Stopped");
return base.StopAsync(cancellationToken);
}

Expand Down
2 changes: 2 additions & 0 deletions sample/Atc.Hosting.TimeFile.Sample/TimeFileWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ public TimeFileWorker(
public override Task StartAsync(
CancellationToken cancellationToken)
{
logger.LogInformation("Started");
return base.StartAsync(cancellationToken);
}

public override Task StopAsync(
CancellationToken cancellationToken)
{
logger.LogInformation("Stopped");
return base.StopAsync(cancellationToken);
}

Expand Down

0 comments on commit 23e22e4

Please sign in to comment.