Ejemplo n.º 1
0
        private void PerformRemoves()
        {
            if (Deletions.Count == 0)
            {
                return;
            }

            foreach (var tr in Deletions.ToList())
            {
                _contents.RemoveRef(tr);
                if (tr == null)
                {
                    continue;
                }

                tr.Completed -= Remove;

                if (Removed != null)
                {
                    Removed(this, tr);
                }
            }

            Deletions.Clear();
        }
Ejemplo n.º 2
0
        private void PerformRemoves()
        {
            if (Deletions.Count == 0)
            {
                return;
            }

            foreach (var tr in Deletions.ToList())
            {
                _contents.RemoveRef(tr);
                if (tr == null)
                {
                    continue;
                }

                Kernel.Log.Info("Removing {0} from Node {1}", tr, Name);

                tr.Completed -= Remove;

                Removed?.Invoke(this, tr);
            }

            Deletions.Clear();
        }