From 8fb3165a5cd9b55ec36d21b66e5acae76f78d8eb Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Sun, 17 Mar 2024 18:54:58 +0100 Subject: [PATCH] docs: Update Readme --- README.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3ca581f..d9eeb69 100644 --- a/README.md +++ b/README.md @@ -69,21 +69,15 @@ builder.Services.AddCronJob(options => 4. Run your application and see the magic happen -## Triggering a instant job +## Triggering an instant job If the need arises and you want to trigger a job instantly, you can do so: ```csharp public class MyService { private readonly IInstantJobRegistry jobRegistry; - public MyService(IInstantJobRegistry jobRegistry) - { - this.jobRegistry = jobRegistry; - } - - public void MyMethod() - { - jobRegistry.AddInstantJob("I am an optional parameter"); - } + public MyService(IInstantJobRegistry jobRegistry) => this.jobRegistry = jobRegistry; + + public void MyMethod() => jobRegistry.AddInstantJob("I am an optional parameter"); } ```