mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
23 lines
575 B
C#
23 lines
575 B
C#
using BTCPayServer.Contracts;
|
|
using BTCPayServer.HostedServices;
|
|
|
|
namespace BTCPayServer.Services
|
|
{
|
|
public class NBXSyncSummaryProvider : ISyncSummaryProvider
|
|
{
|
|
private readonly NBXplorerDashboard _nbXplorerDashboard;
|
|
|
|
public NBXSyncSummaryProvider(NBXplorerDashboard nbXplorerDashboard)
|
|
{
|
|
_nbXplorerDashboard = nbXplorerDashboard;
|
|
}
|
|
|
|
public bool AllAvailable()
|
|
{
|
|
return _nbXplorerDashboard.IsFullySynched();
|
|
}
|
|
|
|
public string Partial { get; } = "Bitcoin/NBXSyncSummary";
|
|
}
|
|
}
|