btcpayserver/BTCPayServer/Services/ReportService.cs
Andrew Camilleri a60072a431
do not have report name conflict with old plugin (#5826)
* do not have report name conflict with old plugin

* tryadd instead of add

* Apply #5816 to crowdfund too
2024-03-11 14:18:47 +01:00

19 lines
458 B
C#

using System.Collections.Generic;
using BTCPayServer.Services.Reporting;
namespace BTCPayServer.Services
{
public class ReportService
{
public ReportService(IEnumerable<ReportProvider> reportProviders)
{
foreach (var r in reportProviders)
{
ReportProviders.TryAdd(r.Name, r);
}
}
public Dictionary<string, ReportProvider> ReportProviders { get; } = new();
}
}