public AddressInfoHandler(Repository repo, ResourceManager lang, TezosDataContext db, TezosBotFacade botClient) : base(db, botClient) { _repo = repo; _lang = lang; }
private TOut RunIsolatedDb <TOut>(Func <TezosDataContext, TOut> action) { lock (_dbLock) { using var db = new TezosDataContext(_dbOptions); return(action(db)); } }
private void RunIsolatedDb(Action <TezosDataContext> action) { lock (_dbLock) { using var db = new TezosDataContext(_dbOptions); action(db); } }
public NotifyDelegateInactive(ITzKtClient tzkt, IOptions <BotConfig> config, TezosDataContext db, ResourceManager lang, AddressService addressService) { _db = db; _tzkt = tzkt; _lang = lang; _config = config; _addressService = addressService; }
public AddressTransactionListHandler( TezosDataContext db, TezosBotFacade botClient, ResourceManager lang, TokenService tokenService, AddressTransactionsRepository transactionsRepository ) : base(db, botClient) { TokenService = tokenService; TransactionsRepository = transactionsRepository; this.lang = lang; }
public ExcludeWhaleCommand(IOptions <BotConfig> config, TezosDataContext db, TezosBotFacade botClient) : base(db, botClient) { Config = config.Value; }
public LinkPayoutAddressCommand(TezosBotFacade bot, TezosDataContext data) { this.bot = bot; this.data = data; }
public Repository(DbContextOptions dbOptions) { _dbOptions = dbOptions; _db = new TezosDataContext(dbOptions); }
public BaseHandler(TezosDataContext db, TezosBotFacade botClient) { Db = db; Bot = botClient; }
public TezosBotFacade(TezosDataContext db, TelegramBotClient client, IOptions <BotConfig> options) { this.db = db; this.options = options; Client = client; }
public void SaveMessage(Message message) { using var db = new TezosDataContext(_dbOptions); db.Add(message); db.SaveChanges(); }
public TokenService(TezosDataContext db, IBetterCallDevClient bcd) { Db = db; Bcd = bcd; }
public SyncPayoutAddressCommand(TezosDataContext dbContext, TezosBotFacade botClient) { DbContext = dbContext; Bot = botClient; }
public AddressService(TezosDataContext data, ITzKtClient tzKtClient) { this.data = data; this.tzKtClient = tzKtClient; }