From 17d6f56c20e8785b8f0033b189493af87f6ebd7d Mon Sep 17 00:00:00 2001 From: Gustav Wengel Date: Thu, 1 Oct 2020 13:30:00 +0200 Subject: [PATCH] fixed readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 60bc66e..bc6f43b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ However BackgroundServices fails silently if an uncaught error occurs. This example will not throw an error, but simply fail silently. ```csharp -public class YieldingAndThenCrashingCriticalBackgroundService: CriticalBackgroundService +public class YieldingAndThenCrashingCriticalBackgroundService: BackgroundService { protected override async Task ExecuteAsync(CancellationToken stoppingToken) { @@ -57,7 +57,7 @@ You can use it like this: Inherit from the CriticalBackgroundService ```csharp -public class YieldingAndThenCrashingBackgroundService: BackgroundService +public class YieldingAndThenCrashingBackgroundService: CriticalBackgroundService { protected override async Task ExecuteAsync(CancellationToken stoppingToken) {