Exemplo n.º 1
0
 public async Task WatchAsync(string invoiceId, bool singleShot = false)
 {
     if (invoiceId == null)
     {
         throw new ArgumentNullException(nameof(invoiceId));
     }
     if (!singleShot)
     {
         await _InvoiceRepository.AddPendingInvoice(invoiceId).ConfigureAwait(false);
     }
     _WatchRequests.Add(invoiceId);
 }