Esempio n. 1
0
        public void RemoveFromQueue(ObjectGuid guid)
        {
            RemoveFromNewQueue(guid);
            RemoveFromCurrentQueue(guid);
            RemoveFromCompatibles(guid);

            string sguid = guid.ToString();

            var itDelete = QueueDataStore.LastOrDefault().Key;

            foreach (var key in QueueDataStore.Keys.ToList())
            {
                var data = QueueDataStore[key];
                if (key != guid)
                {
                    if (data.bestCompatible.Contains(sguid))
                    {
                        data.bestCompatible = "";
                        FindBestCompatibleInQueue(key, data);
                    }
                }
                else
                {
                    itDelete = key;
                }
            }

            if (!itDelete.IsEmpty())
            {
                QueueDataStore.Remove(itDelete);
            }
        }
Esempio n. 2
0
 public void RemoveQueueData(ObjectGuid guid)
 {
     QueueDataStore.Remove(guid);
 }