Exemplo n.º 1
0
 public LinkBO(IConfiguration configuration, LnkCaptureContext lnkCaptureContext, ILogger <LinkBO> logger, IMessageBO messageBO, IChatBO chatBO, ILinkReaderLogBO linkReaderLogBO, IConfigBO configBO, ICrawlerBO crawlerBO) : base(lnkCaptureContext, configuration, logger)
 {
     Logger           = logger;
     _configBO        = configBO;
     _messageBO       = messageBO;
     _chatBO          = chatBO;
     _linkReaderLogBO = linkReaderLogBO;
     _crawlerBO       = crawlerBO;
 }
Exemplo n.º 2
0
        public LinkReaderBO(IConfiguration configuration, LnkCaptureContext lnkCaptureContext, ILogger <LinkReaderBO> logger, IChatBO chatBO) : base(lnkCaptureContext, configuration, logger)
        {
            var botConfiguration = Configuration.GetSection("BotConfiguration");

            Logger  = logger;
            _chatBO = chatBO;

            _telegramBotClient = string.IsNullOrEmpty(botConfiguration["Socks5Host"])
                ? new TelegramBotClient(botConfiguration["BotToken"])
                : new TelegramBotClient(
                botConfiguration["BotToken"],
                new HttpToSocks5Proxy(botConfiguration["Socks5Host"], int.Parse(botConfiguration["Socks5Port"])));
        }
Exemplo n.º 3
0
 public MessageBO(IConfiguration configuration, ILogger <MessageBO> logger, ILinkReaderBO linkReaderBO, IChatBO chatBO) : base(configuration, logger)
 {
     Logger        = logger;
     _linkReaderBO = linkReaderBO;
     _chatBO       = chatBO;
 }
Exemplo n.º 4
0
 public IndexModel(IChatBO chatBO, ILinkReaderBO linkReaderBO)
 {
     _chatBO       = chatBO;
     _linkReaderBO = linkReaderBO;
 }