Search code examples
c#wpfhangfire

Is a C# WPF Hangfire Client possible?


I would like to enqueue Hangfire jobs from a WPF desktop application. Is this possible?

I currently have an api that talks to our Hangfire server but would like to bypass it to enqueue background jobs directly. Has anyone set this up before? I'm not seeing any examples online.


Solution

  • I think you are after BackgroundJob.Enqueue()

    https://docs.hangfire.io/en/latest/background-methods/calling-methods-in-background.html