Hangfire recurring job causing null reference exeption

335 Views Asked by At

I'm new to using hangfire for recurring jobs, and when I'm using them they don't seem to do what I want them to do. When I use RecurringJob.AddOrUpdate("Clear Files", () => ClearFiles(FileFilter.pathName), "*/10 * * * *"); it always causes a Null Reference Exception, which is weird because when I just call ClearFiles(FileFilter.pathName); it works just fine. What am I doing wrong / what do I have to do to get around this error?

0

There are 0 best solutions below