Example #1
0
 public InfoController(IKeysRepository keysRepository, IOptions <Config> config, P2PConnectionHandler connectionHandler, NRustLightningNetworkProvider networkProvider, RepositoryProvider repositoryProvider)
 {
     this.keysRepository = keysRepository;
     _connectionHandler  = connectionHandler;
     _networkProvider    = networkProvider;
     _repositoryProvider = repositoryProvider;
     this.config         = config.Value;
 }
 public WorkQueueProcessor(ChannelProvider channelProvider, P2PConnectionHandler p2PConnectionHandler,
                           ILogger <WorkQueueProcessor> logger, PeerManagerProvider peerManagerProvider, NRustLightningNetwork network,
                           IWalletService walletService, IRepository repo)
 {
     _channelProvider      = channelProvider;
     _p2PConnectionHandler = p2PConnectionHandler;
     _logger = logger;
     _peerManagerProvider = peerManagerProvider;
     _network             = network;
     _walletService       = walletService;
     _repo  = repo;
     _tasks = new [] { HandleOutboundConnectQueue(), HandleSpendableOutputEventQueue() };
 }
Example #3
0
 public RustLightningEventReactor(
     P2PConnectionHandler connectionHandler,
     IPeerManagerProvider peerManagerProvider,
     IWalletService walletService,
     NRustLightningNetwork network,
     EventAggregator eventAggregator,
     ILogger logger,
     IInvoiceRepository invoiceRepository)
 {
     _pool = MemoryPool <byte> .Shared;
     _connectionHandler   = connectionHandler;
     _peerManagerProvider = peerManagerProvider;
     _walletService       = walletService;
     _network             = network;
     _eventAggregator     = eventAggregator;
     _logger            = logger;
     _invoiceRepository = invoiceRepository;
     _peerManager       = peerManagerProvider.TryGetPeerManager(network.CryptoCode);
 }
 public RustLightningEventReactor(
     P2PConnectionHandler connectionHandler,
     PeerManagerProvider peerManagerProvider,
     IWalletService walletService,
     NRustLightningNetwork network,
     EventAggregator eventAggregator,
     ILogger logger,
     InvoiceService invoiceService,
     ChannelProvider channelProvider,
     IRepository repository)
 {
     _pool = MemoryPool <byte> .Shared;
     _connectionHandler   = connectionHandler;
     _peerManagerProvider = peerManagerProvider;
     _walletService       = walletService;
     _network             = network;
     _eventAggregator     = eventAggregator;
     _logger          = logger;
     _invoiceService  = invoiceService;
     _channelProvider = channelProvider;
     _repository      = repository;
 }
Example #5
0
 public PeerController(PeerManagerProvider peerManagerProvider, ISocketDescriptorFactory socketDescriptorFactory, P2PConnectionHandler connectionHandler)
 {
     _connectionHandler      = connectionHandler;
     PeerManagerProvider     = peerManagerProvider;
     SocketDescriptorFactory = socketDescriptorFactory;
 }