コード例 #1
0
ファイル: EvaluatorUtility.cs プロジェクト: bllue78/Unicorn
        /// <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);
        }
コード例 #2
0
        /// <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
ファイル: EvaluatorUtility.cs プロジェクト: bllue78/Unicorn
        /// <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);
        }