I hope someone can help me as I am just going round in circles. I have correctly configured and set up Hangfire. I can navigate and view the dashboard but I just cannot for the life of me create a job. I have static module with a test method:
Module UpdateQueue
Public Class QueueSet
Public Function xSetDate() As String
Do something here
End Function
End Class
End Module
I then try to create a job with various different attempts from linq expressions etc to the basic below:
BackgroundJob.Enqueue(Of QueueSet)(Function(x) x.xSetDate())
Whatever I try I always get the following error:
Expression body should be of type MethodCallExpression
" & vbCrLf & “Parameter name: methodCall”. Once I have got past this, then also need to send parameters. I am sure I am just missing the point.
Any help gratefully received. I have spent a long time looking for a response and tried several suggestions from here. I just want to see that first job entered!
Thanks for anyones help.