public IAnswer Ask(ISemanticNetworkContext context, ILanguage language = null) { using (var questionContext = context.CreateQuestionContext(this, language)) { return(Process(questionContext)); } }
internal QuestionProcessingContext(ISemanticNetworkContext parent, QuestionT question, ILanguage language = null) : base(parent) { _question = question; if (language != null) { Language = language; } }
internal DisposableProcessingContext(ISemanticNetworkContext parent) : base(parent.Language, parent, parent.SemanticNetwork) { }