Ejemplo n.º 1
0
 public DefaultController(
     IWordsRepository <Word, WordsCountBotDbContext> wordsRepo,
     IChatsRepository <Chat, WordsCountBotDbContext> chatsRepo,
     IUsagesRepository <WordUsedTimes, WordsCountBotDbContext> usagesRepo
     )
 {
     _wordsRepo  = wordsRepo;
     _chatsRepo  = chatsRepo;
     _usagesRepo = usagesRepo;
 }
Ejemplo n.º 2
0
 public WcbTelegramBot(
     ILogger <WcbTelegramBot> logger,
     IWordsRepository <Word, WordsCountBotDbContext> wordsRepo,
     IChatsRepository <MyChat, WordsCountBotDbContext> chatsRepo,
     IUsagesRepository <WordUsedTimes, WordsCountBotDbContext> usagesRepo,
     IWcbTelegramClient client
     )
 {
     _logger     = logger;
     _wordsRepo  = wordsRepo;
     _chatsRepo  = chatsRepo;
     _usagesRepo = usagesRepo;
     _client     = client;
 }