Tutorial
The questioner has two questions that have to be answered:
The first question (HowCoolIsTheEvaluationEngine
) is a parameter-less question,
the second (HowManyVowelsAreInThisText
) a question with a parameter (= the text to process).
The answerer knows how this questions can be solved:
The coolness question is answered by concatenating the results of the individual expressions (here, inline expressions are used).
The coolness question itself is a simple class:
The vowel counting question is answered depending on whether capital or small letters should be count. The total number is calculated as the sum of the counts of the individual vowels.
The vowel counting question looks like this:
The CountVowelExpression
counts the number of a specific vowel:
The console output of calling Ask
on the questioner results in:
You can use the log4net log extension found in the Appccelerate.SourceTemplates package to log using log4net (or your own logging extension for other logging frameworks). Answering the coolness question results in the following log:
Answering the vowel counting results in the following log:
Take a look at the rest of the documentation to learn about modules and how to use different aggregators and expressions.