Beispiel #1
0
 public InfoController(IConfiguration configuration,
                       DingTalkHelper ddHelper,
                       IOptions <DTalkConfig> options)
 {
     _ddHelper      = ddHelper;
     _configuration = configuration;
     _ddConfig      = options.Value;
 }
Beispiel #2
0
 public ChatController(TokenValidationParameters validationParameters,
                       IChatService chat,
                       DingTalkHelper ddHelper,
                       IRedisCachingProvider redis,
                       IServiceRecordService record,
                       IOptions <DTalkConfig> options)
 {
     _ddHelper             = ddHelper;
     _record               = record;
     _redis                = redis;
     _validationParameters = validationParameters;
     _chat     = chat;
     _ddConfig = options.Value ?? throw new ArgumentNullException(nameof(_ddConfig));
 }
Beispiel #3
0
 public DingTalkHelper(HttpRequestHelper http,
                       IOptions <DTalkConfig> options)
 {
     _http   = http;
     _config = options.Value ?? throw new ArgumentNullException(nameof(_config));
 }
Beispiel #4
0
 public DingDingApprovalService(HttpClient httpClient,
                                IOptions <DTalkConfig> options)
 {
     _httpClient = httpClient;
     _ddConfig   = options.Value;
 }