コード例 #1
0
 public SearchExpressionContext(SearchExpressionRuntime runtime, SearchExpression expression, SearchExpression[] args, SearchExpressionExecutionFlags flags)
 {
     this.runtime    = runtime;
     this.expression = expression;
     this.flags      = flags;
     this.args       = args;
 }
コード例 #2
0
        internal IEnumerable <SearchItem> Execute(SearchContext searchContext, SearchExpressionExecutionFlags executionFlags)
        {
            var runtime = new SearchExpressionRuntime(searchContext, executionFlags);

            if (executionFlags.HasFlag(SearchExpressionExecutionFlags.ThreadedEvaluation))
            {
                return(TaskEvaluatorManager.Evaluate(runtime.current, this));
            }
            return(Execute(runtime.current, executionFlags));
        }