public TelegraphConnector(ILogger <TelegraphConnector> logger, IConfiguration configuration) { _configuration = configuration; _client = new Telegraph.Net.TelegraphClient(); _secureClient = _client.GetTokenClient(_configuration.GetSection("TelegraphApiKey").Value); _logger = logger; }
public TelegraphClient(ILogger <TelegraphClient> logger, ICoreLogicService coreLogicService, IConfiguration configuration) { _configuration = configuration; _client = new Telegraph.Net.TelegraphClient(); _secureClient = _client.GetTokenClient(_configuration.GetSection("TelegraphApiKey").Value); _logger = logger; _coreLogicService = coreLogicService; }