public ITikReSentence ExecuteSingleRow()
{
EnsureConnectionSet();
EnsureNotRunning();
_isRuning = true;
try
{
string[] commandRows = ConstructCommandText(TikCommandParameterFormat.Filter);
IEnumerable<ApiSentence> response = EnsureApiSentences(_connection.CallCommandSync(commandRows));
ThrowPossibleResponseError(response.ToArray());
EnsureExcatNumberOfResponses(response, 2);
EnsureReReponse(response.First()); //!re
ApiReSentence result = (ApiReSentence)response.First();
EnsureDoneResponse(response.Last()); //!done
return result;
}
finally
{
_isRuning = false;
}
}