Пример #1
0
 public WalletBalanceService(IWalletBalanceRepository balanceRepository,
                             IObservableWalletRepository observableWalletRepository,
                             IBlockChainProvider blockChainProvider,
                             OperationsConfirmationsSettings confirmationsSettings)
 {
     _balanceRepository          = balanceRepository;
     _observableWalletRepository = observableWalletRepository;
     _blockChainProvider         = blockChainProvider;
     _confirmationsSettings      = confirmationsSettings;
 }
Пример #2
0
 public UpdateBalanceFunctions(IObservableWalletRepository observableWalletRepository,
                               IWalletBalanceService walletBalanceService,
                               ILog log,
                               WalletBalanceSettings walletBalanceSettings)
 {
     _observableWalletRepository = observableWalletRepository;
     _walletBalanceService       = walletBalanceService;
     _log = log;
     _walletBalanceSettings = walletBalanceSettings;
 }
 public WalletBalanceService(IObservableWalletRepository observableWalletRepository,
                             IWalletBalanceRepository walletBalanceRepository,
                             ITransactionOutputsService transactionOutputsService,
                             IBlockchainProvider blockchainProvider,
                             ILogFactory logFactory)
 {
     _observableWalletRepository = observableWalletRepository;
     _walletBalanceRepository    = walletBalanceRepository;
     _transactionOutputsService  = transactionOutputsService;
     _blockchainProvider         = blockchainProvider;
     _log = logFactory.CreateLog(this);
 }
Пример #4
0
        public UpdateBalancesPeriodicalHandler(
            ILogFactory logFactory,
            TimeSpan timerPeriod,
            IWalletBalanceService walletBalanceService,
            IObservableWalletRepository observableWalletRepository)
        {
            _walletBalanceService       = walletBalanceService;
            _observableWalletRepository = observableWalletRepository;

            _log = logFactory.CreateLog(this);

            _timerTrigger            = new TimerTrigger(nameof(UpdateBalancesPeriodicalHandler), timerPeriod, logFactory);
            _timerTrigger.Triggered += (trigger, args, token) => Execute();
        }
Пример #5
0
 public WalletBalanceService(IWalletBalanceRepository balanceRepository,
                             IObservableWalletRepository observableWalletRepository,
                             IBlockChainProvider blockChainProvider,
                             IAssetService assetService,
                             Network network,
                             ILogFactory logFactory)
 {
     _balanceRepository          = balanceRepository;
     _observableWalletRepository = observableWalletRepository;
     _blockChainProvider         = blockChainProvider;
     _assetService = assetService;
     _network      = network;
     _log          = logFactory.CreateLog(this);
 }
Пример #6
0
        public UpdateBalanceFunctions(IObservableWalletRepository observableWalletRepository,
                                      OperationsConfirmationsSettings confirmationsSettings,
                                      IBlockChainProvider blockChainProvider,
                                      IWalletBalanceService walletBalanceService,
                                      BlockHeightSettings blockHeightSettings,
                                      ILastProcessedBlockRepository lastProcessedBlockRepository,
                                      HotWalletAddressSettings hotWalletAddressSettings,
                                      ILogFactory logFactory)
        {
            _observableWalletRepository   = observableWalletRepository;
            _confirmationsSettings        = confirmationsSettings;
            _blockChainProvider           = blockChainProvider;
            _walletBalanceService         = walletBalanceService;
            _blockHeightSettings          = blockHeightSettings;
            _lastProcessedBlockRepository = lastProcessedBlockRepository;
            _hotWalletAddressSettings     = hotWalletAddressSettings;
            _log = logFactory.CreateLog(this);

            _log.Info("Starting balance updating", context: blockHeightSettings);
        }
 public UpdateBalanceFunctions(IObservableWalletRepository observableWalletRepository, IWalletBalanceService walletBalanceService)
 {
     _observableWalletRepository = observableWalletRepository;
     _walletBalanceService       = walletBalanceService;
 }
Пример #8
0
 public WalletBalanceService(IWalletBalanceRepository balanceRepository, IObservableWalletRepository observableWalletRepository, IBlockChainProvider blockChainProvider)
 {
     _balanceRepository          = balanceRepository;
     _observableWalletRepository = observableWalletRepository;
     _blockChainProvider         = blockChainProvider;
 }