My application enqueue jobs with argument List<SomeClass>
where SomeClass is deserialized from JSON by newtosoft Json.NET. Like this:
BackgroundJob.Enqueue(() => myJob.jobStartMethos(
List<SomeClass>
argument));
When open success job details i’ve see:
using my.namespace
MyJobClass myJob = Activate<MyJobClass>(); myJob.jobStartMethod( new { FromJson<SomeClass>("json string"), FromJson<SomeClass>("json string") ... etc...
This argument is too large and really prevents to browse details. How i can fix this? I tryed to override toString() but this doesn’t help.
And I tryed
JobHelper.SetSerializerSettings(new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.None });
But this doesn’t help.