示例#1
0
        public IReadOnlyList <byte[]> GetIcons(IReadOnlyList <PluginIdentifier> plugins)
        {
            var stopwatch = Stopwatch.StartNew();

            Log.DebugFormat("Retrieving icons for {0} plugin(s)...", plugins.Count);

            var icons = _pluginIcons.GetManyValues(plugins).ToList();

            stopwatch.Stop();
            Log.InfoFormat("Retrieved {0} icon(s) from disk, (took {1}ms)",
                           icons.Count, stopwatch.ElapsedMilliseconds);

            return(icons);
        }
示例#2
0
        public IReadOnlyList <PublishedPluginDescription> GetDescriptions(IReadOnlyList <PluginIdentifier> plugins)
        {
            var stopwatch = Stopwatch.StartNew();

            Log.DebugFormat("Retrieving description(s) for {0} plugin(s)...", plugins.Count);

            var descriptions = _pluginDescriptions.GetManyValues(plugins)
                               .Select(CreateDescription)
                               .ToList();

            stopwatch.Stop();
            Log.InfoFormat("Retrieved {0} description(s) from disk, (took {1}ms)",
                           descriptions.Count, stopwatch.ElapsedMilliseconds);

            return(descriptions);
        }