/// <summary> /// Decrements the number of spiders that have indicated /// this item to be of interest to them. /// This method is called by CdsSpider to indicate /// that the spider is not interested in the container anymore. /// If no spiders are interested in the item, then /// the item is removed. /// </summary> internal void DecrementSpiderMatches() { System.Threading.Interlocked.Decrement(ref this.m_SpiderClients); if (this.m_SpiderClients == 0) { CpMediaContainer p = (CpMediaContainer)this.Parent; if (p != null) { p.RemoveObject(this); } } }