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); }
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); }