loic-sharma / BaGet

A lightweight NuGet and symbol server
https://loic-sharma.github.io/BaGet/
MIT License
2.58k stars 644 forks source link

Refactor upstream clients #709

Closed loic-sharma closed 2 years ago

loic-sharma commented 2 years ago

This pushes logic from the MirrorService down into the V2UpstreamClient and V3UpstreamClient and adds tests on the V3UpstreamClient. This will make it easier to refactor the MirrorService, which will make it easier to implement the legacy V2 APIs in BaGet.

Split from https://github.com/loic-sharma/BaGet/pull/699

Test: