Пример #1
0
        /// <summary>
        /// Deletes an item from the source data provider
        /// </summary>
        private static void RecycleItem(IItemData itemData, ISourceDataStore sourceStore, Action <IItemData> deleteMessage)
        {
            var children = sourceStore.GetChildren(itemData);

            RecycleItems(children, sourceStore, deleteMessage);

            deleteMessage(itemData);

            sourceStore.Remove(itemData);
        }
        /// <summary>
        /// Deletes an item from the source data provider
        /// </summary>
        protected virtual void RecycleItem(IItemData itemData)
        {
            var children = _sourceDataStore.GetChildren(itemData);

            EvaluateOrphans(children.ToArray());

            _logger.RecycledItem(itemData);
            _logger.Evaluated(itemData);
            _sourceDataStore.Remove(itemData);
        }
Пример #3
0
        /// <summary>
        /// Deletes an item from the source data provider
        /// </summary>
        private static void RecycleItem(IItemData itemData, ISourceDataStore sourceStore, Action<IItemData> deleteMessage)
        {
            var children = sourceStore.GetChildren(itemData);

            RecycleItems(children, sourceStore, deleteMessage);

            deleteMessage(itemData);

            sourceStore.Remove(itemData);
        }