async Task <LightningInvoice> ILightningInvoiceClient.GetInvoice(string invoiceId, CancellationToken cancellation)
        {
            var invoice = await GetInvoice(invoiceId, cancellation);

            if (invoice == null)
            {
                return(null);
            }
            return(ChargeClient.ToLightningInvoice(invoice));
        }
Esempio n. 2
0
 async Task <LightningInvoice> ILightningListenInvoiceSession.WaitInvoice(CancellationToken token)
 {
     return(ChargeClient.ToLightningInvoice(await WaitInvoice(token)));
 }