Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23ff26b

Browse files
committed
[NuGet] Aggregate repository failing repository handling.
Allow AggregateRepository to return packages if one repository fails. mrward/nuget@bdfb90a Give AggregateRepository classes access to failed repositories. mrward/nuget@495751e Previously when IgnoreFailingRepositories was true and the Search method was called on the AggregateRepository then if any repository throw an exception then this exception would not be caught. The other methods on AggregateRepository do not have this behaviour. GetPackages, for example, will not throw an exception if one package source throws an exception. All the methods on AggregateRepository apart from Search use the Wrap method to handle any exceptions thrown. Now when IgnoreFailingRepositories is true calling the Search will now return packages even if one package source fails. The Search method now also uses the Wrap method to handle any exceptions thrown. When IgnoreFailingRepositories is true and a repository fails a derived class is now informed about the failure instead of the error just being logged.
1 parent baab2c4 commit 23ff26b

File tree

2 files changed

+0
-0
lines changed

2 files changed

+0
-0
lines changed

NuGet.Core.dll

0 Bytes
Binary file not shown.

NuGet.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)