btcpayserver/BTCPayServer/Services/ReportService.cs

21 lines
543 B
C#
Raw Normal View History

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