Throwing NotImplementedException for Listen / WaitInvoice

This commit is contained in:
rockstardev 2018-05-25 12:19:15 -05:00
parent e634700913
commit d293bc3947
2 changed files with 9 additions and 7 deletions

View file

@ -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
{
}
}

View file

@ -89,4 +89,8 @@ namespace BTCPayServer.Payments.Lightning.Lnd
return handler;
}
}
public partial class LndSwaggerClient
{
}
}