Ejemplo n.º 1
0
 public RecognitionService(ISettings settings, IIntentService intentService, ILuisService luisService, ILogger <RecognitionService> logger)
 {
     _settings      = settings;
     _intentService = intentService;
     _luisService   = luisService;
     _logger        = logger;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new LuisIntentDialog
 /// </summary>
 /// <param name="intentService"></param>
 /// <param name="intentFactory"></param>
 /// <param name="intentHandlerFactory"></param>
 /// <param name="logger"></param>
 public IntentDialog(
     IIntentService intentService,
     IIntentFactory intentFactory,
     IntentHandlerFactory intentHandlerFactory,
     OAuthDialog oAuthDialog,
     ILogger <IntentDialog> logger)
     : base(nameof(IntentDialog), intentFactory, intentHandlerFactory, oAuthDialog, logger)
 {
     this.intentService = intentService;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes the application core services.
        /// </summary>
        /// <returns>A <see cref="Task"/> that represents the asynchronous operations.</returns>
        public async Task InitializeAsync()
        {
            intent       = new IntentService(this);
            localization = new LocalizationProvider(this);

            intent.Initialize();

            await Configuration.InitializeAsync().ConfigureAwait(false);

            await localization.InitializeAsync().ConfigureAwait(false);
        }
Ejemplo n.º 4
0
        public GeneralDialog(ILuisService luisService, IIntentService intentService)
        {
            var waterfallSteps = new WaterfallStep[]
            {
                MessageGeneral
            };

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallSteps));
            _luisService   = luisService;
            _intentService = intentService;
        }
Ejemplo n.º 5
0
        public RootDialog(ILuisService luisService, IIntentService intentService)
        {
            _luisService   = luisService;
            _intentService = intentService;
            var waterfallSteps = new WaterfallStep[]
            {
                InitialProcess,
                FinalProcess
            };

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallSteps));
            AddDialog(new GeneralDialog(luisService, _intentService));

            InitialDialogId = nameof(WaterfallDialog);
        }
Ejemplo n.º 6
0
 /// <inheritdoc />
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="factory"></param>
 public IntentController(IChatBotDataFactory factory)
 {
     _intentService = factory.GetIntentService();
     _mapper        = factory.GetMapperService();
 }
Ejemplo n.º 7
0
 public IntentController(IIntentService intentService, IConfiguration Config)
 {
     _intentService = intentService;
     config         = Config;
 }
 public AvailabilityController(IIntentService intentService)
 {
     _intentService = intentService;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="factory"></param>
 /// <param name="chatbotDataContext"></param>
 public InterviewService(IChatBotDataFactory factory, IChatBotDataContext chatbotDataContext)
 {
     _chatbotDataContext = chatbotDataContext;
     _resourceService    = factory.GetResourceService(Common.Constants.ResourceComponent);
     _intentService      = factory.GetIntentService();
 }
Ejemplo n.º 10
0
 public IntentController(IIntentService intentService)
 {
     _intentService = intentService;
 }