✅ Hangfire as windows service

I have a hangfire as window service connected to the database. Now I want to add a dialog box as interface to take input from user to update cronjob.
No description
No description
10 Replies
Pobiega
Pobiega2mo ago
a service should never ever take on-demand input then its not really a service
Suraj Kumar😎
Suraj Kumar😎2mo ago
A client wants that take the user input and convert it into cron expression and store the data in table so that hangfire scans the table and trigger according to the stored cron expression in the table
Pobiega
Pobiega2mo ago
how about adding a web interface to the service then
Suraj Kumar😎
Suraj Kumar😎2mo ago
How would I add web interface in the existing service
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
jcotton42
jcotton422mo ago
@Suraj Kumar😎 more specifically they can’t. They run in a session that doesn’t have a desktop. Windows services that is.
Pobiega
Pobiega2mo ago
even if it wasnt a windows service but just a "run as service" type thing, you wouldnt do dialog/stdin input
Suraj Kumar😎
Suraj Kumar😎2mo ago
Okay so then I have to create a seprate web app which feeds the table with date and time and then hangfire will scans the table.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Suraj Kumar😎
Suraj Kumar😎2mo ago
Thanks for the help guys