Here’s my code. model.ImportFile is a IFormFile object. It doesn’t work. I get a JSON serialization error. How do I pass this object type to an enqueued task?
_backgroundJobClient.Enqueue(() => ImportJob(model.ImportFile,user.Id.GetValueOrDefault())); // Create background task to load import file