To use Hangfire in combination with F# I require a little help:
Hangfire's BackgroundJob.Enqueue takes as a parameter an System.Linq.Expressions.Expression with generic type Action<'T>.
So in full: Expression<Action<'T>>
And on my side I've got a method to my disposal:
let doSomething () = ()
Thus its signature is unit -> unit.
How I could perfectly pass in Action(doSomething) if the callee took an Action, but it does not.
So how do I convert my unit -> unit to a Expression<Action<'T>>?