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 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 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 AddressAggregateCatchup(ILogger <AddressAggregateCatchup> logger, BlockQuery blockQuery, AddressAggregatorCommand addressAggregator) { _logger = logger; _blockQuery = blockQuery; _addressAggregator = addressAggregator; }