You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to resolve an issue where all the jobs are executed after server reboot. It is not desired behavior for us given that the timing of jobs is very important. I stumbled across this post and tried to re-create the jobs at startup. Unfortunately, I am getting an error message with 1.7.28 that the method params and the argument params do not match. Even though they match, please see the attached screenshot.
Omg, thanks for pinging, this should be fixed. The problem is that the Job's constructor overload takes params object[] parameter for args, so when array is passed, it's considered as the first argument, resulting in the exception. Another constructor overload should be added that uses the object[] parameter instead for this use case.
That Job constructor overload takes params object[] as the last argument, while the Args property returns IReadOnlyList<object>. So the whole list is passed as a single argument, due to the type mismatch.
I think the best way to handle this inconsistency would be to change the parameter type of that Job constructor to params IReadOnlyList<object>, since the newest C# compilers allow doing this. However, this is a breaking change.
I am trying to resolve an issue where all the jobs are executed after server reboot. It is not desired behavior for us given that the timing of jobs is very important. I stumbled across this post and tried to re-create the jobs at startup. Unfortunately, I am getting an error message with 1.7.28 that the method params and the argument params do not match. Even though they match, please see the attached screenshot.
Thanks!
The text was updated successfully, but these errors were encountered: