Hello, I have this model on the client side:
static void Main()
{
...
string jsonModel = CreateModel(model);
var jobId = BackgroundJob.Enqueue(() => **???** );
}
public static string CreateModel(MyModel model)
{
model.Id = 1;
model.Name = "Steve";
return JsonConvert.SerializeObject(model);
}
When I return it as Json, how can I pass this to the server side with the BackgroundJob.Enqueue() Method?
In this documentation: Passing Arguments ā Hangfire Documentation I can only find the usage of Console.WriteLine? Do I need to use this? And how do I handle arguments server side? I need to manipulate the data or work with the model.