コード例 #1
0
    /// <inheritdoc/>
    protected override void Execute()
    {
        Nodes  = new NamedCollection <CacheNode>();
        _feeds = _feedCache.GetAll();

        foreach (var feed in _feeds)
        {
            Add(GetFeedNode(feed));
        }

        foreach (var digest in _implementationStore.ListAll())
        {
            var node = GetImplementationNode(digest);
            if (node != null)
            {
                TotalSize += node.Size;
                Add(node);
            }
        }

        foreach (string path in _implementationStore.ListAllTemp())
        {
            Add(GetTempNode(path));
        }
    }
コード例 #2
0
        /// <inheritdoc/>
        protected override void Execute()
        {
            Nodes  = new NamedCollection <CacheNode>();
            _feeds = _feedCache.GetAll();

            foreach (var feed in _feeds)
            {
                Add(feed);
            }
            foreach (var digest in _store.ListAll())
            {
                Add(digest);
            }
            foreach (string path in _store.ListAllTemp())
            {
                Add(path);
            }

            State = TaskState.Complete;
        }