public LightningAuctionAdminService(IConfiguration config, IAuctionService auctionService, ILndService lndService)
 {
     _auctionService  = auctionService;
     _lnd             = lndService;
     AuthorizedPubkey = config.GetValue <string>("admin_pub");
     MessageToSign    = config.GetValue <string>("message");
 }
예제 #2
0
 public RaffleService(ILndService lndService)
 {
     _lndService = lndService;
     _lndService.AddInvoicePaidEventHandler(InvoicePaid);
 }
예제 #3
0
 public AuctionService(ILndService lndService)
 {
     _lndService = lndService;
     _lndService.AddHoldInvoiceListener(LndService_OnHoldInvoiceActivated);
     Task.Run(async() => await CleanUpEntries());
 }
 public LightningAuctionService(ILogger <LightningAuctionService> logger, IAuctionService auctionService, ILndService lnd)
 {
     _logger         = logger;
     _auctionService = auctionService;
     _lnd            = lnd;
 }
예제 #5
0
 public RaffleController(IConfiguration config, ILndService lndService, IRaffleService raffleService)
 {
     _lndService      = lndService;
     _raffleService   = raffleService;
     AuthorizedPubkey = config.GetValue <string>("admin_pub");
 }