public IntelligentSearchController( IWebUtilWrapper webUtil, ISitecoreDataWrapper dataWrapper, IIntelligentSearchSettings settings, ISearchService searcher, ILuisService luisService, ILuisConversationService luisConversationService, IAutoSuggestService autoSuggestService, ISpeechService speechService, IWebSearchService webSearchService, IConversationContextFactory conversationContextFactory, IMicrosoftCognitiveServicesApiKeys apiKeys) { WebUtil = webUtil; DataWrapper = dataWrapper; Settings = settings; Searcher = searcher; LuisService = luisService; LuisConversationService = luisConversationService; AutoSuggestService = autoSuggestService; SpeechService = speechService; WebSearchService = webSearchService; ConversationContextFactory = conversationContextFactory; ApiKeys = apiKeys; }
public OleChatController( ILuisService luisService, ILuisConversationService luisConversationService, IWebUtilWrapper webUtil, ISitecoreDataWrapper dataWrapper, IOleSettings chatSettings, ISetupInformationFactory setupFactory, ISetupService setupService, ISpeechService speechService, ISearchService searcher, IConversationContextFactory conversationContextFactory, ISpellCheckService spellCheckService, IIntentProvider intentProvider) { LuisService = luisService; LuisConversationService = luisConversationService; WebUtil = webUtil; DataWrapper = dataWrapper; ChatSettings = chatSettings; SetupFactory = setupFactory; SetupService = setupService; SpeechService = speechService; Searcher = searcher; ConversationContextFactory = conversationContextFactory; SpellCheckService = spellCheckService; IntentProvider = intentProvider; ThemeManager.GetImage("Office/32x32/man_8.png", 32, 32); var lang = WebUtil.GetQueryString("language"); if (string.IsNullOrWhiteSpace(lang)) { lang = Sitecore.Context.Language.Name; } var db = WebUtil.GetQueryString("db"); if (string.IsNullOrWhiteSpace(db)) { db = "master"; } Parameters = new ItemContextParameters() { Id = WebUtil.GetQueryString("id"), Language = lang, Database = db }; }