mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
a60072a431
* do not have report name conflict with old plugin * tryadd instead of add * Apply #5816 to crowdfund too
19 lines
458 B
C#
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();
|
|
}
|
|
}
|