public bool TryGetQueue(string fixedName, out WorkQueueModel workQueueModel) { lock (SortLock) { return(_sortedList.TryGetValue(fixedName, out workQueueModel)); } }
public void Add(WorkQueueModel workQueueModel) { lock (SortLock) { _sortedList.Add(workQueueModel.Name, workQueueModel); } }