Exemple #1
0
 public NBXplorerWaiter(NBXplorerDashboard dashboard, BTCPayNetwork network, ExplorerClient client, EventAggregator aggregator)
 {
     _Network    = network;
     _Client     = client;
     _Aggregator = aggregator;
     _Dashboard  = dashboard;
 }
Exemple #2
0
 public NBXplorerWaiters(NBXplorerDashboard dashboard, ExplorerClientProvider explorerClientProvider, EventAggregator eventAggregator)
 {
     foreach (var explorer in explorerClientProvider.GetAll())
     {
         _Waiters.Add(new NBXplorerWaiter(dashboard, explorer.Item1, explorer.Item2, eventAggregator));
     }
 }
Exemple #3
0
 public NBXplorerWaiter(NBXplorerDashboard dashboard, BTCPayNetwork network, ExplorerClient client, EventAggregator aggregator, Logs logs)
 {
     this.Logs   = logs;
     _Network    = network;
     _Client     = client;
     _Aggregator = aggregator;
     _Dashboard  = dashboard;
     _Dashboard.Publish(_Network, State, null, null);
 }
Exemple #4
0
 public NBXplorerListener(ExplorerClientProvider explorerClients,
                          NBXplorerDashboard dashboard,
                          InvoiceRepository invoiceRepository,
                          EventAggregator aggregator, IApplicationLifetime lifetime)
 {
     PollInterval       = TimeSpan.FromMinutes(1.0);
     _Dashboards        = dashboard;
     _InvoiceRepository = invoiceRepository;
     _ExplorerClients   = explorerClients;
     _Aggregator        = aggregator;
     _Lifetime          = lifetime;
 }