Hangfire.Common.Job -> CancellationToken (Reflection)

Hi all

I would like to use the Hangfire.Common.Job Class (Reflection) to schedule a recurring job and also specify a CancellationToken with it. How do I do that. Can I supply it as args somehow.

var job = new Job(typeof(Console), typeof(Console).GetMethod(“Write”), ???);

Thanks for your help in advance.

Best regards,
Michael

This does the magic: var jobSchedule = new Hangfire.Common.Job(type, type.GetMethod(“Process”), new object[] { CancellationToken.None });