The Are you methods ready to run in background article has following note
NOTE . Since Hangfire 1.1, the Json.NET package is used to serialize all the things, including custom classes. The information below is obsolete.
Arguments are also serialized to string, but arguments serialization process uses the
TypeConverterclass. All standard classes like numbers, strings, dates and so on already have the correspondingTypeConverterimplementation, but if you want to pass an instance of a custom class as an argument, you should write the custom converter first.// Does not work until you implement the custom TypeConverter. BackgroundJob.Enqueue(() => CheckArticle(new Article()));
What does this mean for the code example in that section? Does it mean we don’t need to implement a custom TypeConvert for the Article class?