Is there a way to specify the name of the queue when calling the method and not having to add an attribute to the method? I have a legacy class library that is compiled against .NET 3.5 and cannot update to .NET 4.5 to install Hangfire.Core in order to add the attribute
[Queue("critical")] to the call of the method.
I have 2 queues, 1 that is "critical" and one that is "default". I want this one method to always use this specific queue to process.
Is there a way to specify the queue in this way? If not, can it be added to handle this situation?
var processor = new MyClassInDotNet35();
BackgroundJob.Enqueue(() => processor.Run(DateTime.UtcNow), "critical");