Пример #1
0
 public IAnswer Ask(ISemanticNetworkContext context, ILanguage language = null)
 {
     using (var questionContext = context.CreateQuestionContext(this, language))
     {
         return(Process(questionContext));
     }
 }
Пример #2
0
 internal QuestionProcessingContext(ISemanticNetworkContext parent, QuestionT question, ILanguage language = null)
     : base(parent)
 {
     _question = question;
     if (language != null)
     {
         Language = language;
     }
 }
Пример #3
0
 internal DisposableProcessingContext(ISemanticNetworkContext parent)
     : base(parent.Language, parent, parent.SemanticNetwork)
 {
 }