public MiningStatsJob(NexusQuery nexusQuery, RedisCommand redisCommand, StatQuery statQuery, ILogger <MiningStatsJob> logger) : base(10, logger) { _nexusQuery = nexusQuery; _redisCommand = redisCommand; _statQuery = statQuery; }
public AddressStatsJob(ILogger <AddressStatsJob> logger, RedisCommand redisCommand, AddressQuery addressQuery, BlockQuery blockQuery, NexusQuery nexusQuery) : base(30, logger) { _redisCommand = redisCommand; _addressQuery = addressQuery; _blockQuery = blockQuery; _nexusQuery = nexusQuery; }
public BlockScanJob(ILogger <BlockScanJob> logger, NexusQuery nexusQuery, BlockQuery blockQuery, BlockInsertCommand blockInsert, AddressAggregatorCommand addressAggregator, BlockDeleteCommand blockDelete) : base(3, logger) { _nexusQuery = nexusQuery; _blockQuery = blockQuery; _blockInsert = blockInsert; _addressAggregator = addressAggregator; _blockDelete = blockDelete; }
public App(ILogger <App> logger, NexusQuery nexusQuery, BlockSyncCatchup blockCatchup, AddressAggregateCatchup addressCatchup, BlockCacheCommand cacheCommand, RedisCommand redisCommand) { _logger = logger; _nexusQuery = nexusQuery; _blockCatchup = blockCatchup; _addressCatchup = addressCatchup; _cacheCommand = cacheCommand; _redisCommand = redisCommand; }
public TrustAddressCacheJob(ILogger <TrustAddressCacheJob> logger, NexusQuery nexusQuery, BlockQuery blockQuery, NexusDb nexusDb, AddressQuery addressQuery, RedisCommand redisCommand) : base(180, logger) { _nexusQuery = nexusQuery; _blockQuery = blockQuery; _nexusDb = nexusDb; _addressQuery = addressQuery; _redisCommand = redisCommand; }
public BlockSyncJob(ILogger <BlockSyncJob> logger, NexusQuery nexusQuery, BlockQuery blockQuery, BlockPublishCommand blockPublish, BlockInsertCommand blockInsert, AddressAggregatorCommand addressAggregator, BlockCacheCommand cacheCommand) : base(3, logger) { _nexusQuery = nexusQuery; _blockQuery = blockQuery; _blockPublish = blockPublish; _blockInsert = blockInsert; _addressAggregator = addressAggregator; _cacheCommand = cacheCommand; }
public BlockSyncCatchup(NexusQuery nexusQuery, IServiceProvider serviceProvider, BlockQuery blockQuery, ILogger <BlockSyncCatchup> logger, RedisCommand redisCommand, BlockInsertCommand blockInsert, BlockCacheCommand cacheCommand) { _nexusQuery = nexusQuery; _serviceProvider = serviceProvider; _blockQuery = blockQuery; _logger = logger; _redisCommand = redisCommand; _blockInsert = blockInsert; _cacheCommand = cacheCommand; _cancelBlockStream = new CancellationTokenSource(); }
public BlockSyncFixture() { var sc = new ServiceCollection(); Settings.BuildConfig(sc); Settings.AttachConfig(sc.BuildServiceProvider(), true); var testDb = new NexusTestDesignTimeDbContextFactory().CreateDbContext(null); Client = new NxsClient(Settings.Connection.Nexus); InsertCommand = new BlockInsertCommand(); DeleteCommand = new BlockDeleteCommand(); AddressAggregator = new AddressAggregatorCommand(); Mapper = new AutoMapperConfig().GetMapper(); NexusQuery = new NexusQuery(Client, Mapper); BlockQuery = new BlockQuery(testDb, Mapper); AddressQuery = new AddressQuery(testDb, null); }
public TimestampSyncJob(NexusQuery nexusQuery, RedisCommand redisCommand, ILogger <TimestampSyncJob> logger) : base(10, logger) { _nexusQuery = nexusQuery; _redisCommand = redisCommand; }
public MiningInfoSyncJob(NexusQuery nexusQuery, RedisCommand redisCommand, ILogger <MiningInfoSyncJob> logger) : base(10, logger) { _nexusQuery = nexusQuery; _redisCommand = redisCommand; }