public void DequeueId(long chatId) { var senderIndex = QueueList.IndexOf(QueueList.First(item => item.ChatId == chatId)); QueueList.RemoveAt(senderIndex); AlertSubscribers(NotificationEventType.OrderChange, senderIndex); }
internal void RemoveTaskFromQueue() { try { QueueList.RemoveAt(QueueIndex); } catch { } }
public void Dequeue([CallerMemberName] string caller = null) { //_logger.LogError($"DEQUEUE CALLED BY {caller}"); _LogHelper.Log("S87FD7FDS78DS", $"DEQUEUE CALLED BY {caller}", LogLevel.Trace, true); QueueList.RemoveAt(0); AlertSubscribers(NotificationEventType.OrderChange, 0); }
public void SetQueueCapacity(int capacity) { if (QueueList.Count > capacity) { //trim queue list to fit intended capacity of this lane queue for (int i = 0; i < QueueList.Count; i++) { QueueList.RemoveAt(QueueLane.Capacity + i); } } QueueLane.Capacity = capacity; }
/// <summary> /// Gets and removes the ticket at the front of the queue, returns null if empty /// </summary> /// <returns></returns> public QueueTicket DequeueTicket() { if (QueueList.Count != 0) { var ticketToReturn = QueueList[0]; QueueList.RemoveAt(0); return(ticketToReturn); } else { return(null); } }
public MusicData?Dequeue() { lock (QueueList) { if (QueueList.Count == 0) { return(null); } var item = QueueList[0]; QueueList.RemoveAt(0); return(item); } }
private BuildElement GetQueueHead() { lock (s_lock) { if (QueueList.Count <= 0) { return(null); } var item = QueueList[0]; QueueList.RemoveAt(0); return(item); } }
private RetrospectiveQueueStructure GetQueueHead() { lock (s_lockObject) { if (QueueList.Count <= 0) { return(null); } var item = QueueList[0]; QueueList.RemoveAt(0); Logger.WriteLogEntry(TraceEventType.Information, "Patterns Add On Manager, Retrospective Queue, Get QueueHead", "Found next retrospective item"); return(item); } }