public async Task <string> Process(string message) { ICustomService customService = null; if (new FeatureProvider(_featureEvaluators).Evaluate("Features:NLUEnabled") == "true") { //TODO: Talk to NLU Service to extract Intent & Entity } switch (message.Split('/')[0]) { case Constants.CorporateBullShitBuzzWord: customService = _customServices.Where(cs => cs.CanExecute(Constants.CorporateBullShitBuzzWord)).First(); break; default: customService = _customServices.Where(cs => cs.CanExecute(Constants.CopyCat)).First(); break; } return(await customService.Execute(message)); }
public string Execute() { return(_customService.Execute()); }