public MoMoBotMLTrainingTask(MoMoBotML mlContext, MoMoDbContext dbContext, ILogger <MoMoBotMLTrainingTask> logger) { _mlContext = mlContext; _dbContext = dbContext; _logger = logger; }
public KnowledgeMapContext(MoMoDbContext dbContext, IStorage storage, ILogger <KnowledgeMapContext> logger) { _logger = logger; _dbContext = dbContext; _storage = storage; }
public UserService(MoMoDbContext context, UserManager <MoMoBotUser> userManager, IAppSettings appSettings) { _userManager = userManager; _context = context; _appSettings = appSettings; }
public StatisticsMatchIntentCountTask(IRedisCachingProvider redis, IConfiguration configuration, ILogger <StatisticsMatchIntentCountTask> logger) { _redis = redis; _logger = logger; var connection = configuration.GetConnectionString("DefaultConnection"); var options = new DbContextOptionsBuilder <MoMoDbContext>() .UseNpgsql(connection) .Options; _dbContext = new MoMoDbContext(options); }
public VoiceService(IHostingEnvironment env, IConfiguration config, MoMoDbContext dbContext, HttpClient http) { _http = http; _dbContext = dbContext; var endpoint = config.GetValue("CognitiveServicesKeys:Endpoint", ""); var key = config.GetValue("CognitiveServicesKeys:Voice", ""); _authentication = new Authentication($"{endpoint}/sts/v1.0/issueToken", key); _voicesPath = Path.Combine("voices", DateTime.Now.ToString("yyyyMMdd")); _abstractPath = Path.Combine(env.ContentRootPath, "upload", _voicesPath); if (Directory.Exists(_abstractPath) == false) { Directory.CreateDirectory(_abstractPath); } }
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; }
public ChatService(MoMoDbContext dbContext) { _dbContext = dbContext; }
public ParamenterService(MoMoDbContext context) { _context = context; }
public HotIntentService(MoMoDbContext dbContext) { _dbContext = dbContext; }
public ModularService(MoMoDbContext dbContext) { _dbContext = dbContext; }
public AppSettings(MoMoDbContext dbContext, IEasyCachingProvider cache) { _dbContext = dbContext; _cache = cache; }
public PermissionService(MoMoDbContext context) { _dbContext = context; }
public FeedbackService(MoMoDbContext context, ILogger <FeedbackService> logger) { _context = context; _logger = logger; }
public ServiceRecordService(MoMoDbContext context) { _context = context; }
public UnknownService(MoMoDbContext context) { _context = context; }
public DepartmentService(MoMoDbContext dbContext) { _dbContext = dbContext; }
public KnowledgeService(MoMoDbContext dbContext, ILogger <KnowledgeService> logger) { _logger = logger; _dbContext = dbContext; }