Get bool value from Background.Enqueue service


#1

how to get bool or return typw value of function provided in
bool result = BackgroundJob.Enqueue(()=> bool res = SendInformationEmail(emailVM));
please help fast.


#2

You could either use this solution or use the continuation feature of hangfire depending on your use case