Example for usage refers to non existing method.
Closed this issue · 1 comments
codingWombat commented
The example for registering a new job says
services.AddFantasma(config =>
{
// Register all job handlers within the same
// assembly as `Program`.
config.RegisterHandlersInAssemblyContaining<Program>();
// Schedule a recurring job that executes
// every 10 seconds.
config.ScheduleRecurring(
"unique-id-of-job",
"*/10 * * * * *",
new MyRecurringJob.Data());
});
But it needs to be:
...
// Schedule a recurring job that executes
// every 10 seconds.
config.AddRecurringJob(
"unique-id-of-job",
"*/10 * * * * *",
new MyRecurringJob.Data());
...
As there is no method ScheduleRecurring
patriksvensson commented
Thanks for catching this. I've updated the README with correct instructions.