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; }
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"]))); }
public MessageBO(IConfiguration configuration, ILogger <MessageBO> logger, ILinkReaderBO linkReaderBO, IChatBO chatBO) : base(configuration, logger) { Logger = logger; _linkReaderBO = linkReaderBO; _chatBO = chatBO; }
public IndexModel(IChatBO chatBO, ILinkReaderBO linkReaderBO) { _chatBO = chatBO; _linkReaderBO = linkReaderBO; }