示例#1
0
        public IReadOnlyList <PublishedPluginDescription> GetAllPlugins()
        {
            var stopwatch = Stopwatch.StartNew();

            Log.DebugFormat("Retrieving description(s) for all plugin(s)...");

            var descriptions = _pluginDescriptions.GetAllValues()
                               .Select(CreateDescription)
                               .ToList();

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

            return(descriptions);
        }
示例#2
0
 public IEnumerable <User> GetAllUsers()
 {
     return(_users.GetAllValues());
 }