public void SetSelector(TQItemSelector selector = null) { if (selector == null) { selector = TQItemSelector.DefaultFifoSelector; } comparer = new EncapsulatedMessageComparer(new MessageComparer(selector)); MessageQueue = new SortedSet <TaskMessage>(comparer); }
public void SetSelector(TQItemSelector selector = null) { if (selector == null) { selector = TQItemSelector.DefaultFifoSelector; } this.selector = selector; comparer = new EncapsulatedMessageComparer(new MessageComparerVMap(selector)); MessageQueue = new SecSortedSet(comparer, 64, 64); }