public BlockRepository(AccountsCache accounts, OperationRepository operations, QuotesCache quotes, StateCache state, SoftwareCache software, IConfiguration config) : base(config) { Accounts = accounts; Operations = operations; Quotes = quotes; State = state; Software = software; }
public CacheService(TzktContext db) { AppState = new AppStateCache(db); BakerCycles = new BakerCyclesCache(db); BakingRights = new BakingRightsCache(db); Accounts = new AccountsCache(this, db); Blocks = new BlocksCache(this, db); Periods = new PeriodsCache(db); Proposals = new ProposalsCache(db); Protocols = new ProtocolsCache(db); Statistics = new StatisticsCache(db); Software = new SoftwareCache(db); Schemas = new SchemasCache(db); Storages = new StoragesCache(db); }