We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd0401 commit f2692faCopy full SHA for f2692fa
README.md
@@ -211,11 +211,12 @@ Services.AddNCronJob(options =>
211
212
This allows to easily define multiple jobs without adding much boilerplate code.
213
```csharp
214
-Services.AddCronJob<PrintHelloWorld>(options =>
+Services.AddNCronJob(options =>
215
{
216
- options.WithCronExpression("0 * * * *").WithParameter("Foo")
217
- .And
218
- .WithCronExpression("0 0 * * *").WithParameter("Bar");
+ options.AddJob<PrintHelloWorld>(p => p
+ .WithCronExpression("0 * * * *").WithParameter("Foo")
+ .And
219
+ .WithCronExpression("0 0 * * *").WithParameter("Bar"));
220
});
221
```
222
0 commit comments