The original post I had here was with me looking at an issue that was just a symptom of a different issue.
internal class UseShopNameAsQueueAttribute : JobFilterAttribute, IElectStateFilter
{
public string ShopName;
public UseShopNameAsQueueAttribute()
{
this.ShopName = Settings.Default.InternalShopName.ToLower();
}
public void OnStateElection(ElectStateContext context)
{
var enqueuedState = context.CandidateState as EnqueuedState;
if (enqueuedState != null)
{
enqueuedState.Queue = ShopName;
}
}
}