mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-01 05:04:28 +01:00
Throwing NotImplementedException for Listen / WaitInvoice
This commit is contained in:
@@ -74,13 +74,15 @@ namespace BTCPayServer.Payments.Lightning.Lnd
|
||||
// TODO: These two methods where you wait on invoice are still work in progress
|
||||
public Task<ILightningListenInvoiceSession> Listen(CancellationToken cancellation = default(CancellationToken))
|
||||
{
|
||||
return Task.FromResult<ILightningListenInvoiceSession>(this);
|
||||
throw new NotImplementedException();
|
||||
//return Task.FromResult<ILightningListenInvoiceSession>(this);
|
||||
}
|
||||
|
||||
async Task<LightningInvoice> ILightningListenInvoiceSession.WaitInvoice(CancellationToken cancellation)
|
||||
{
|
||||
var resp = await _rpcClient.SubscribeInvoicesAsync(cancellation);
|
||||
return ConvertLndInvoice(resp);
|
||||
throw new NotImplementedException();
|
||||
//var resp = await _rpcClient.SubscribeInvoicesAsync(cancellation);
|
||||
//return ConvertLndInvoice(resp);
|
||||
}
|
||||
// Eof work in progress
|
||||
|
||||
@@ -144,8 +146,4 @@ namespace BTCPayServer.Payments.Lightning.Lnd
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public partial class LndSwaggerClient
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,4 +89,8 @@ namespace BTCPayServer.Payments.Lightning.Lnd
|
||||
return handler;
|
||||
}
|
||||
}
|
||||
|
||||
public partial class LndSwaggerClient
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user