The documentation states
GlobalConfiguration
class is the preferred way to configure Hangfire
For a start, the use of the word “preferred” suggests that it’s not the only way, yet there is no mention of any other options. Secondly, all the examples show the database storage being configured in that global config. Doesn’t that mean that a single assembly cannot use multiple Hangfire servers that each use a different database?
I want to use Hangfire to implement the outbox pattern, which requires that the background jobs are stored in the same DB as my domain objects. In one application I have multiple domains, each with their own DB. How can I do this if Hangfire’s DB configuration is global?