mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
23 lines
567 B
C#
23 lines
567 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; } = "NBXSyncSummary";
|
||
|
}
|
||
|
}
|