Ejemplo n.º 1
0
        public MessageController(ILuisService luis,
                                 IAnswerService answerService,
                                 IUnknownService issueService,
                                 IRedisCachingProvider redis,
                                 DingTalkHelper ddHelper,
                                 IDepartmentService departmentService,
                                 IPermissionService permissionService,
                                 IConfiguration configuration,
                                 IFeedbackService feedbackService,
                                 IAppSettings settings,
                                 ILogger <MessageController> logger,
                                 KnowledgeMapContext mapContext,
                                 DingDingApprovalService dingDingApprovalService)
        {
            _logger            = logger;
            _settings          = settings;
            _ddHelper          = ddHelper;
            _configuration     = configuration;
            _ddApprovalService = dingDingApprovalService;
            _luis              = luis;
            _answerService     = answerService;
            _issueService      = issueService;
            _departService     = departmentService;
            _redis             = redis;
            _feedbackService   = feedbackService;
            _permissionService = permissionService;
            _httpClient        = HttpClientFactory.Create();

            _mapContext = mapContext;
        }
Ejemplo n.º 2
0
 public AnswerService(MoMoDbContext context,
                      IRedisCacheService cache,
                      IHttpContextAccessor httpContextAccessor,
                      IUnknownService issueService,
                      HttpClient httpClient,
                      KnowledgeMapContext mapContext,
                      ILogger <AnswerService> logger)
 {
     _httpContextAccessor = httpContextAccessor;
     _issueService        = issueService;
     _cache      = cache;
     _context    = context;
     _httpClient = httpClient;
     _logger     = logger;
     _mapContext = mapContext;
 }
Ejemplo n.º 3
0
 public TestController(ILogger <TestController> logger,
                       KnowledgeMapContext knowledgeMap)
 {
     _knowledgeMap = knowledgeMap;
     _logger       = logger;
 }