Esempio n. 1
0
 public BotUpdateProcessor(
     ITelegramBotClient botClient,
     IChordsFormatter chordsFormatter,
     Func <IChordsService> chordsServiceFactory)
 {
     _botClient       = botClient;
     _chordsFormatter = chordsFormatter;
     _chordsService   = chordsServiceFactory();
 }
Esempio n. 2
0
 public ChordsController(
     ITelegramBotClient botClient,
     IChordsService chordsService,
     IChordsFormatter chordsFormatter,
     IBotUpdateProcessor botUpdateProcessor)
 {
     _botClient          = botClient;
     _chordsService      = chordsService;
     _chordsFormatter    = chordsFormatter;
     _botUpdateProcessor = botUpdateProcessor;
 }