C
C#7mo ago
Suraj Kumar

✅ 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
Pobiega7mo ago
a service should never ever take on-demand input then its not really a service
Suraj Kumar
Suraj KumarOP7mo 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
Pobiega7mo ago
how about adding a web interface to the service then
Suraj Kumar
Suraj KumarOP7mo ago
How would I add web interface in the existing service
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
jcotton42
jcotton427mo ago
@Suraj Kumar😎 more specifically they can’t. They run in a session that doesn’t have a desktop. Windows services that is.
Pobiega
Pobiega7mo 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 KumarOP7mo 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 User7mo ago
Message Not Public
Sign In & Join Server To View
Suraj Kumar
Suraj KumarOP7mo ago
Thanks for the help guys
Want results from more Discord servers?
Add your server