Is there a way to provide a type resolver in case a job is renamed in the code, but there happens to be a job with the old name queued up?
Ideally I hope to never deal with this, but I’m just curious if there is a facility in which this could happen. It would be nice to have a backup plan if I ever needed this.
If I had:
public class SomeJob
{
public void DoThings() { }
}
And later I refactor the code to have:
public class SomeBetterJobName
{
public void DoThings() { }
}
It does the same thing, but if there was already a SomeJob
queued up, Hangfire is unable to find the type and it won’t go through.