Hi,
I am new to using Hangfire and using it with a .NET Core 5 API.
The API calls a service layer, which contains my implementation. Due to a limitation with a priduct I am using, the service layer has to invoke a Powershell cmdlet on the server.
I have added Hangfire to my code and have a call like below:
var jobId = BackgroundJob.Enqueue(() => _service.GetVmStats(vmName, hostName));
This returns Task.
How can I return the actual return value?