Enqueue multi job

Hi everyone,

It’s possible enqueue more than one job in one Background.Enqueue? So a block…


BackgroundJob.Enqueue( () =>
var aux = 1;

Thanks a lot!

Your example might be a bit too trivial to understand what you’re actually trying to accomplish, but you could rewrite it to look like:

var aux = 1;
BackgroundJob.Enqueue<Class1>(c => c.TestMethod(aux));