Example #1
0
 public StartupManager(
     ICacheMaintainer <WalletState> walletsStateCacheWarmer,
     ICacheMaintainer <TransactionState> transactionsStateCacheWarmer,
     ILogFactory logFactory)
 {
     _walletsStateCacheWarmer      = walletsStateCacheWarmer;
     _transactionsStateCacheWarmer = transactionsStateCacheWarmer;
     _log = logFactory.CreateLog(this);
 }
Example #2
0
 public WalletEventsSubscriber(
     [NotNull] ILogFactory logFactory,
     [NotNull] RabbitMqSettings settings,
     [NotNull] ICacheMaintainer <WalletState> walletsCache)
 {
     _log          = logFactory.CreateLog(this);
     _logFactory   = logFactory;
     _settings     = settings;
     _walletsCache = walletsCache;
 }
Example #3
0
 public CacheOutdateHandler(
     ICacheMaintainer <WalletState> walletsCache,
     ICacheMaintainer <TransactionState> transactionsCache,
     TimeSpan period,
     ILogFactory logFactory) : base(period, logFactory)
 {
     _walletsCache      = walletsCache ?? throw new ArgumentNullException(nameof(walletsCache));
     _transactionsCache = transactionsCache ?? throw new ArgumentNullException(nameof(transactionsCache));
     _log = logFactory.CreateLog(this);
 }
Example #4
0
 public TransactionEventsSubscriber(
     [NotNull] ILogFactory logFactory,
     [NotNull] RabbitMqSettings settings,
     [NotNull] ICacheMaintainer <TransactionState> transactionsCache)
 {
     _log               = logFactory.CreateLog(this);
     _logFactory        = logFactory;
     _settings          = settings;
     _transactionsCache = transactionsCache;
 }
Example #5
0
 public CacheController(
     [NotNull] ICacheMaintainer <WalletState> walletsStateCacheManager,
     [NotNull] ICacheMaintainer <TransactionState> transactionStateCacheManager,
     [NotNull] ILogFactory logFactory)
 {
     _walletsStateCacheManager = walletsStateCacheManager ??
                                 throw new ArgumentNullException(nameof(walletsStateCacheManager));
     _transactionStateCacheManager = transactionStateCacheManager ??
                                     throw new ArgumentNullException(nameof(transactionStateCacheManager));
     _log = logFactory.CreateLog(this);
 }
Example #6
0
 public TransactionsScanService(
     ICacheMaintainer <TransactionState> cacheMaintainer,
     QBitNinjaClient qBitNinjaClient,
     IDiffService <BcnTransaction> diffService,
     IPayInternalClient payInternalClient,
     ILogFactory logFactory)
 {
     _cacheMaintainer   = cacheMaintainer ?? throw new ArgumentNullException(nameof(cacheMaintainer));
     _qBitNinjaClient   = qBitNinjaClient ?? throw new ArgumentNullException(nameof(qBitNinjaClient));
     _diffService       = diffService ?? throw new ArgumentNullException(nameof(diffService));
     _payInternalClient = payInternalClient ?? throw new ArgumentNullException(nameof(payInternalClient));
     _log = logFactory.CreateLog(this);
 }
 public WalletsScanService(
     ICacheMaintainer <WalletState> cacheMaintainer,
     QBitNinjaClient qBitNinjaClient,
     IDiffService <PaymentBcnTransaction> diffService,
     IPayInternalClient payInternalClient,
     ILogFactory logFactory,
     string bitcoinNetwork)
 {
     _cacheMaintainer   = cacheMaintainer ?? throw new ArgumentNullException(nameof(cacheMaintainer));
     _qBitNinjaClient   = qBitNinjaClient ?? throw new ArgumentNullException(nameof(qBitNinjaClient));
     _diffService       = diffService ?? throw new ArgumentNullException(nameof(diffService));
     _payInternalClient = payInternalClient ?? throw new ArgumentNullException(nameof(payInternalClient));
     _bitcoinNetwork    = Network.GetNetwork(bitcoinNetwork);
     _log = logFactory.CreateLog(this);
 }