I would like to be able to queue a method for background processing, but add it to a queue I name at run time. The various queues would be enabled for parallel processing.
Is this possible with Hangfire? If so, how could I achieve this?
I am trying to prevent a scenario where a shared resource (hardware) that I am controlling is only being worked on by one process at a time. There are multiple places where the hardware is controlled, and so only one should be active at a time (and the other requests queued up).
I know there is a disable parallel processing attribute that can be applied to a method, but this is not quite what I need. I still want parallel processing, but by queues.
There is hardware in various locations, and so the location names would be the queue names. Hardware is added over time and registered with the system, hence the need for the queues names to be defined at runtime.
Thanks for any help/advice,