public AddressTransactionsReportsController(BcnReportsSettings bcnReportsSettings,
                                             IAddressReportCommandProducer commandProducer,
                                             IAddressTransactionsReportMetadataRepository addressTransactionsReportMetadataRepository)
 {
     _bcnReportsSettings = bcnReportsSettings;
     _commandProducer    = commandProducer;
     _addressTransactionsReportMetadataRepository = addressTransactionsReportMetadataRepository;
 }
Exemplo n.º 2
0
        public TransactionService(BcnReportsSettings bcnReportsSettings,
                                  INinjaClientFactory qBitNinjaClient,
                                  ILog log, IConsole console)
        {
            _qBitNinjaClient = qBitNinjaClient;
            _log             = log;
            _console         = console;

            _globalSemaphore = new SemaphoreSlim(bcnReportsSettings.NinjaTransactionsMaxConcurrentRequestCount);
        }
Exemplo n.º 3
0
        public BlockService(BcnReportsSettings bcnReportsSettings,
                            INinjaClientFactory bitNinjaClient, ILog log,
                            IConsole console)
        {
            _bitNinjaClient = bitNinjaClient;
            _log            = log;
            _console        = console;

            _globalSemaphore = new SemaphoreSlim(bcnReportsSettings.NinjaBlocksMaxConcurrentRequestCount);
        }
 public BlockTransactionsReportsController(IBlockReportCommandProducer commandProducer,
                                           IBlockTransactionsReportMetadataRepository reportMetadataRepository,
                                           INinjaClientFactory bitNinjaClient,
                                           BcnReportsSettings bcnReportsSettings)
 {
     _commandProducer          = commandProducer;
     _reportMetadataRepository = reportMetadataRepository;
     _bitNinjaClient           = bitNinjaClient;
     _bcnReportsSettings       = bcnReportsSettings;
 }
Exemplo n.º 5
0
 public static Network UsedNetwork(this BcnReportsSettings bcnReportsSettings)
 {
     try
     {
         return(Network.GetNetwork(bcnReportsSettings.Network));
     }
     catch (Exception)
     {
         return(Network.Main);
     }
 }
 public AssetTransactionsesService(BcnReportsSettings bcnReportsSettings)
 {
     _bcnReportsSettings = bcnReportsSettings;
 }
Exemplo n.º 7
0
 public AddressService(BcnReportsSettings bcnReportsSettings)
 {
     _bcnReportsSettings = bcnReportsSettings;
 }
Exemplo n.º 8
0
 public NinjaClientFactory(BcnReportsSettings bcnReportsSettings)
 {
     _bcnReportsSettings = bcnReportsSettings;
 }
Exemplo n.º 9
0
 public AssetDefinitionService(BcnReportsSettings bcnReportsSettings, ICacheManager cacheManager)
 {
     _bcnReportsSettings = bcnReportsSettings;
     _cacheManager       = cacheManager;
 }