Hi everyone,
It’s possible enqueue more than one job in one Background.Enqueue? So a block…
Example:
BackgroundJob.Enqueue( () =>
{
var aux = 1;
Class1.TestMethod(aux);
}
Thanks a lot!
Hi everyone,
It’s possible enqueue more than one job in one Background.Enqueue? So a block…
Example:
BackgroundJob.Enqueue( () =>
{
var aux = 1;
Class1.TestMethod(aux);
}
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));