Register rate providers in DI, so it can be accessed by plugins (#4551)

This commit is contained in:
Nicolas Dorier
2023-01-30 09:46:12 +09:00
committed by GitHub
parent c0c34fbb41
commit b818352a04
32 changed files with 219 additions and 172 deletions

View File

@@ -98,7 +98,7 @@ namespace BTCPayServer.Controllers
private SelectList GetExchangesSelectList(string selected)
{
var exchanges = _rateFactory.RateProviderFactory
.GetSupportedExchanges()
.AvailableRateProviders
.Where(r => !string.IsNullOrWhiteSpace(r.Name))
.OrderBy(s => s.Id, StringComparer.OrdinalIgnoreCase)
.ToList();