private IRecognizer GetLuisRecognizer(MockedHttpClientHandler httpClientHandler, LuisV3.LuisPredictionOptions options = null) { var luisApp = new LuisApplication(AppId, Key, Endpoint); var luisRecognizerOptions = new LuisRecognizerOptionsV3(luisApp) { PredictionOptions = options, IncludeAPIResults = options == null ? false : true, }; return(new LuisRecognizer(luisRecognizerOptions, httpClientHandler)); // return new LuisRecognizer(luisApp, new LuisRecognizerOptions { HttpClient = httpClientHandler }, options); }
private IRecognizer GetLuisRecognizer(MockedHttpClientHandler httpClientHandler, bool verbose = false, LuisPredictionOptions options = null) { var luisApp = new LuisApplication(AppId, Key, Endpoint); return(new LuisRecognizer(luisApp, options, verbose, httpClientHandler)); }