private void findAllPackages() { _diagnostics.LogExecutionOnEach(_loaders, loader => { var packageInfos = loader.Load().ToArray(); _diagnostics.LogPackages(loader, packageInfos); _packages.AddRange(packageInfos); }); }
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; }