public UnboundedPriorityMessageQueue(Func<object, int> priorityGenerator) { _prioQueue.SetPriorityCalculator(priorityGenerator); }