Skip to content

Commit f2692fa

Browse files
committed
fix: Docs in readmen had wrong code
1 parent 5bd0401 commit f2692fa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,12 @@ Services.AddNCronJob(options =>
211211

212212
This allows to easily define multiple jobs without adding much boilerplate code.
213213
```csharp
214-
Services.AddCronJob<PrintHelloWorld>(options =>
214+
Services.AddNCronJob(options =>
215215
{
216-
options.WithCronExpression("0 * * * *").WithParameter("Foo")
217-
.And
218-
.WithCronExpression("0 0 * * *").WithParameter("Bar");
216+
options.AddJob<PrintHelloWorld>(p => p
217+
.WithCronExpression("0 * * * *").WithParameter("Foo")
218+
.And
219+
.WithCronExpression("0 0 * * *").WithParameter("Bar"));
219220
});
220221
```
221222

0 commit comments

Comments
 (0)