예제 #1
0
 private void findAllPackages()
 {
     _diagnostics.LogExecutionOnEach(_loaders, loader =>
     {
         var packageInfos = loader.Load().ToArray();
         _diagnostics.LogPackages(loader, packageInfos);
         _packages.AddRange(packageInfos);
     });
 }
예제 #2
0
        private IEnumerable <IPackageInfo> findAllPackages()
        {
            var result = new List <IPackageInfo>();

            _diagnostics.LogExecutionOnEach(_packageLoaders, (currentLoader, log) =>
            {
                var packageInfos = currentLoader.Load(log).ToArray();
                _diagnostics.LogPackages(currentLoader, packageInfos);

                result.AddRange(packageInfos);
            });

            return(result);
        }
        private IEnumerable<IPackageInfo> findAllPackages()
        {
            var list = new List<IPackageInfo>();

            _diagnostics.LogExecutionOnEach(_loaders, loader =>
            {
                var log = _diagnostics.LogFor(loader);
                var packageInfos = loader.Load(log).ToArray();
                _diagnostics.LogPackages(loader, packageInfos);

                list.AddRange(packageInfos);
            });

            return list;
        }