mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 01:53:52 +01:00
Throwing NotImplementedException for Listen / WaitInvoice
This commit is contained in:
parent
e634700913
commit
d293bc3947
2 changed files with 9 additions and 7 deletions
|
@ -74,13 +74,15 @@ namespace BTCPayServer.Payments.Lightning.Lnd
|
||||||
// TODO: These two methods where you wait on invoice are still work in progress
|
// TODO: These two methods where you wait on invoice are still work in progress
|
||||||
public Task<ILightningListenInvoiceSession> Listen(CancellationToken cancellation = default(CancellationToken))
|
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)
|
async Task<LightningInvoice> ILightningListenInvoiceSession.WaitInvoice(CancellationToken cancellation)
|
||||||
{
|
{
|
||||||
var resp = await _rpcClient.SubscribeInvoicesAsync(cancellation);
|
throw new NotImplementedException();
|
||||||
return ConvertLndInvoice(resp);
|
//var resp = await _rpcClient.SubscribeInvoicesAsync(cancellation);
|
||||||
|
//return ConvertLndInvoice(resp);
|
||||||
}
|
}
|
||||||
// Eof work in progress
|
// 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;
|
return handler;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public partial class LndSwaggerClient
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue