It seems like you can’t pass in an IFormFile object to an Enqueued task because it cannot be serialized? Is that true, or do I have to do something in my method to allow the background task to work with IFormFile?
Here’s my method:
public async Task ImportAsync(IFormFile importFile, int userId)
This same question has been asked before but not answered:
http://hangfire.discourse.group/t/interface-or-abstract-class-and-cannot-be-instantiated/5442