Reviewing the docs
We have a fairly typical web application in a solution that includes a few class library projects, one of which serves as a “data layer” and includes an entity framework DbContext.
Currently, to handle automation, we use powershell to automate the calling of some of the code and we are looking at moving more of this type of activity this way, hence looking at something like Hangfire.
Looking at these two options:
(1) Single process:
Hangfire installed within an existing web app, jobs defined as making calls into methods within assemblies that are referenced by the web app as well.
(2) Separate (windows) service:
Hangfire would be installed into new windows service project, likely within the same solution as the web app mentioned above. Question - what would the code in this service call? Eg. if the code to be executed resides in the class libraries being used by the web app, then you have maybe two choices (a) include the windows service project in the same solution as the web project so you can reference the same class libraries or (b) define web api enpoints that the windows service can call within job(s)