示例#1
0
 public TelegraphConnector(ILogger <TelegraphConnector> logger, IConfiguration configuration)
 {
     _configuration = configuration;
     _client        = new Telegraph.Net.TelegraphClient();
     _secureClient  = _client.GetTokenClient(_configuration.GetSection("TelegraphApiKey").Value);
     _logger        = logger;
 }
示例#2
0
 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;
 }