public AltQueryProcessor(IAltQueryScriptService scriptService = null, IAltQueryParser parserService = null, IAltQueryComposer composerService = null) { AltQueryOptions = new AltQueryOptions(); _scriptService = scriptService ?? new AltQueryScriptService(); _parserService = parserService ?? new AltQueryParser(AltQueryOptions); _composerService = composerService ?? new AltQueryComposer(AltQueryOptions); AddAssembliesViaOptions(AltQueryOptions.Assemblies); WarmScriptEngineViaOptions(); }
public AltQueryProcessor(AltQueryOptions options, IAltQueryScriptService scriptService = null, IAltQueryParser parserService = null) { if (options == null) { throw new ArgumentNullException(nameof(AltQueryOptions)); } AltQueryOptions = new AltQueryOptions { GetCallingAssemblyOnInit = options.GetCallingAssemblyOnInit, ColdStartOnInit = options.ColdStartOnInit, ComparisonOperatorOptions = options.ComparisonOperatorOptions, LogicalOperatorOptions = options.LogicalOperatorOptions, Assemblies = options.Assemblies }; _scriptService = scriptService ?? new AltQueryScriptService(); _parserService = parserService ?? new AltQueryParser(AltQueryOptions); AddAssembliesViaOptions(AltQueryOptions.Assemblies); WarmScriptEngineViaOptions(); }