i need to execute a job every day at specific time, in some post i find that best solution is use hangfire because it allows complex schedule functions, i integrated hangfire with sql server successfully but i dont find how register Hangfire recurrent job calling the original api of hangfire, about this let me be more specific i found how to register using a controller, but i dont want have to call a controller to make the job registration.. i prefer do the registration of the worker like a normal worker (if its possible) or some other way that register the job at app initialization. any ideas?? thanks a lot in advantage
1 Answer(s)
-
0
I had created a sample usage: <a class="postlink" href="https://gist.github.com/hikalkan/d543b6ded179d1f05227f49bc70e2fbe">https://gist.github.com/hikalkan/d543b6 ... 9bc70e2fbe</a> You can use same code from another class (like application initialization, in the PostInitialize of your module for example)