Beispiel #1
0
        public static IQueryExecutionBuilder UseDefaultPipeline(
            this IQueryExecutionBuilder builder,
            IQueryExecutionOptionsAccessor options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            return(builder
                   .AddErrorHandler(options)
                   .AddQueryValidation(options)
                   .AddDefaultValidationRules()
                   .AddQueryCache(options)
                   .AddExecutionStrategyResolver()
                   .AddDefaultParser()
                   .UseInstrumentation(options)
                   .UseRequestTimeout(options)
                   .UseExceptionHandling()
                   .UseQueryParser()
                   .UseValidation()
                   .UseOperationResolver()
                   .UseCoerceVariables()
                   .UseMaxComplexity()
                   .UseOperationExecutor());
        }