/// <summary> /// Initializes a new instance with specified <see cref="IDocumentBuilder"/>, /// <see cref="IDocumentValidator"/>, <see cref="IComplexityAnalyzer"/>, /// and <see cref="IDocumentCache"/> instances. /// </summary> public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache) { _documentBuilder = documentBuilder ?? throw new ArgumentNullException(nameof(documentBuilder)); _documentValidator = documentValidator ?? throw new ArgumentNullException(nameof(documentValidator)); _complexityAnalyzer = complexityAnalyzer ?? throw new ArgumentNullException(nameof(complexityAnalyzer)); _documentCache = documentCache ?? throw new ArgumentNullException(nameof(documentCache)); }
public SubscriptionExecuter( IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer) : base(documentBuilder, documentValidator, complexityAnalyzer) { }
public QueryOnlyDocumentExecuter( IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer) : base(documentBuilder, documentValidator, complexityAnalyzer) { }
public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, ITraceLogger traceLogger) { _documentBuilder = documentBuilder ?? throw new ArgumentNullException(nameof(documentBuilder)); _documentValidator = documentValidator ?? throw new ArgumentNullException(nameof(documentValidator)); _complexityAnalyzer = complexityAnalyzer ?? throw new ArgumentNullException(nameof(complexityAnalyzer)); _traceLogger = traceLogger ?? throw new ArgumentNullException(nameof(traceLogger)); }
/// <summary> /// Initializes a new instance with the specified <see cref="IDocumentBuilder"/>, /// <see cref="IDocumentValidator"/>, <see cref="IComplexityAnalyzer"/>, /// <see cref="IDocumentCache"/> and a set of <see cref="IConfigureExecutionOptions"/> instances. /// </summary> public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache, IEnumerable <IConfigureExecutionOptions> configurations, IExecutionStrategySelector executionStrategySelector) { _documentBuilder = documentBuilder ?? throw new ArgumentNullException(nameof(documentBuilder)); _documentValidator = documentValidator ?? throw new ArgumentNullException(nameof(documentValidator)); _complexityAnalyzer = complexityAnalyzer ?? throw new ArgumentNullException(nameof(complexityAnalyzer)); _documentCache = documentCache ?? throw new ArgumentNullException(nameof(documentCache)); _configurations = configurations?.ToArray(); _executionStrategySelector = executionStrategySelector ?? throw new ArgumentNullException(nameof(executionStrategySelector)); }
/// <summary> /// Initializes a new instance with the specified <see cref="IDocumentBuilder"/>, /// <see cref="IDocumentValidator"/>, <see cref="IComplexityAnalyzer"/>, /// <see cref="IDocumentCache"/> and a set of <see cref="IConfigureExecutionOptions"/> instances. /// </summary> private DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache, IExecutionStrategySelector executionStrategySelector, IEnumerable <IConfigureExecution> configurations) { // TODO: in v6 make this public _documentBuilder = documentBuilder ?? throw new ArgumentNullException(nameof(documentBuilder)); _documentValidator = documentValidator ?? throw new ArgumentNullException(nameof(documentValidator)); _complexityAnalyzer = complexityAnalyzer ?? throw new ArgumentNullException(nameof(complexityAnalyzer)); _documentCache = documentCache ?? throw new ArgumentNullException(nameof(documentCache)); _executionStrategySelector = executionStrategySelector ?? throw new ArgumentNullException(nameof(executionStrategySelector)); _execution = BuildExecutionDelegate(configurations); }
public ApolloTracingDocumentExecuter( IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache, IEnumerable <IConfigureExecutionOptions> configureExecutionOptions, IExecutionStrategySelector executionStrategySelector) : base(documentBuilder, documentValidator, complexityAnalyzer, documentCache, configureExecutionOptions, executionStrategySelector) { }
/// <summary> /// Initializes a new instance with the specified <see cref="IDocumentBuilder"/>, /// <see cref="IDocumentValidator"/>, <see cref="IComplexityAnalyzer"/>, /// <see cref="IDocumentCache"/> and a set of <see cref="IConfigureExecutionOptions"/> instances. /// </summary> public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache, IExecutionStrategySelector executionStrategySelector, IEnumerable <IConfigureExecution> configurations, IEnumerable <IConfigureExecutionOptions> optionsConfigurations) #pragma warning disable CS0618 // Type or member is obsolete : this(documentBuilder, documentValidator, complexityAnalyzer, documentCache, executionStrategySelector, configurations.Append(new ConfigureExecutionOptionsMapper(optionsConfigurations))) #pragma warning restore CS0618 // Type or member is obsolete { // TODO: remove in v6 }
public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache, IEnumerable <IConfigureExecutionOptions> configurations, IExecutionStrategySelector executionStrategySelector) : this(documentBuilder, documentValidator, complexityAnalyzer, documentCache, executionStrategySelector, new IConfigureExecution[] { new ConfigureExecutionOptionsMapper(configurations) }) { }
/// <summary> /// Initializes a new instance with specified <see cref="IDocumentBuilder"/>, /// <see cref="IDocumentValidator"/>, <see cref="IComplexityAnalyzer"/>, /// and <see cref="IDocumentCache"/> instances. /// </summary> public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache) : this(documentBuilder, documentValidator, complexityAnalyzer, documentCache, new DefaultExecutionStrategySelector(), Array.Empty <IConfigureExecution>()) { }
/// <summary> /// Initializes a new instance with specified <see cref="IDocumentBuilder"/>, /// <see cref="IDocumentValidator"/> and <see cref="IComplexityAnalyzer"/> instances, /// and without document caching. /// </summary> public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer) : this(documentBuilder, documentValidator, complexityAnalyzer, DefaultDocumentCache.Instance) { }
public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache, IEnumerable <IConfigureExecution>?configurations) : this(documentBuilder, documentValidator, complexityAnalyzer, documentCache) { _configurations = configurations; }
/// <summary> /// Initializes a new instance with specified <see cref="IDocumentBuilder"/>, /// <see cref="IDocumentValidator"/>, <see cref="IComplexityAnalyzer"/>, /// and <see cref="IDocumentCache"/> instances. /// </summary> public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache) : this(documentBuilder, documentValidator, complexityAnalyzer, documentCache, null !) { }
public SubscriptionDocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache, IEnumerable <IConfigureExecution>?configurations) : base(documentBuilder, documentValidator, complexityAnalyzer, documentCache, configurations) { }
/// <summary> /// Initializes a new instance with specified <see cref="IDocumentBuilder"/>, /// <see cref="IDocumentValidator"/>, <see cref="IComplexityAnalyzer"/>, /// <see cref="IDocumentCache"/> and a set of <see cref="IConfigureExecutionOptions"/> instances. /// </summary> public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer, IDocumentCache documentCache, IEnumerable <IConfigureExecutionOptions> configurations) : this(documentBuilder, documentValidator, complexityAnalyzer, documentCache, configurations, new DefaultExecutionStrategySelector()) { }
public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer) { _documentBuilder = documentBuilder; _documentValidator = documentValidator; _complexityAnalyzer = complexityAnalyzer; }
public DocumentExecuter(IDocumentBuilder documentBuilder, IDocumentValidator documentValidator, IComplexityAnalyzer complexityAnalyzer) { _documentBuilder = documentBuilder; _documentValidator = documentValidator; _complexityAnalyzer = complexityAnalyzer; }