Refactoring to keep coin logic out of InvoiceWatcher

This commit is contained in:
nicolas.dorier
2018-02-17 01:34:40 +09:00
parent 66597aed46
commit 5de330b1f9
19 changed files with 504 additions and 333 deletions

View File

@@ -239,6 +239,7 @@ namespace BTCPayServer.Controllers
try
{
leases.Add(_EventAggregator.Subscribe<Events.InvoiceDataChangedEvent>(async o => await NotifySocket(webSocket, o.InvoiceId, invoiceId)));
leases.Add(_EventAggregator.Subscribe<Events.InvoiceNewAddressEvent>(async o => await NotifySocket(webSocket, o.InvoiceId, invoiceId)));
leases.Add(_EventAggregator.Subscribe<Events.InvoiceEvent>(async o => await NotifySocket(webSocket, o.InvoiceId, invoiceId)));
while (true)
{