示例#1
0
 /// <inheritdoc/>
 /// <remarks>
 /// If there are no query executors that can execute the specified query
 /// a instance of the <see cref="NoOpQueryExecutor"/> class will be
 /// returned.
 /// </remarks>
 public IQueryExecutor GetQueryExecutor(IQuery query)
 {
     for (int i = 0, j = executors_.Length; i < j; i++)
     {
         IQueryExecutor executor = executors_[i];
         if (executor.CanExecute(query))
         {
             return(executor);
         }
     }
     return(NoOpQueryExecutor.StaticNoOpQueryExecutor);
 }