Update README.md
69c19a057508089fd9cc58630e9612215af70e67
1 files changed
README.md
diff --git a/README.md b/README.md
index b3887ad..9f179b8 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,7 @@ public class ExampleService(ILoggerFactory loggerFactory) : IHostedService
private readonly ILogger Logger = loggerFactory.CreateLogger<ExampleService>();
private string name = "unknown";
+
public async Task<bool> SetNameAsync(string Name)
{
this.name = Name;
@@ -42,6 +43,7 @@ public class ExampleService(ILoggerFactory loggerFactory) : IHostedService
return name;
}
+ // IHostedService StartAsync
public async Task StartAsync(CancellationToken cancellationToken)
{
Logger.LogWarning("StartAsync");
@@ -49,6 +51,7 @@ public class ExampleService(ILoggerFactory loggerFactory) : IHostedService
await Task.Delay(100);
}
+ // IHostedService StopAsync
public async Task StopAsync(CancellationToken cancellationToken)
{
Logger.LogWarning("StopAsync");