I’m using Hangfire with MySQL server. When I schedule a job, it often failed because of this error The type
NewsBusiness does not contain a method with signature
DeleteNewsPhysical(Int32). Even though the method is contained in that class and after a few try the job run successfully. Does anyone know the reason behind the fail try?
BackgroundJob.Schedule(() => this.DeleteNewsPhysical(id), TimeSpan.FromSeconds(5));
public void DeleteNewsPhysical(int newsId)