public QueryRunner(QueryParser queryParser, QueryPlanBuilder queryPlanBuilder, QueryPlanExecutor queryPlanExecutor, IQueryResultFactory queryResultFactory) { _queryParser = queryParser; _queryPlanBuilder = queryPlanBuilder; _queryPlanExecutor = queryPlanExecutor; _queryResultFactory = queryResultFactory; }
public QueryRunner(QueryParser queryParser, QueryPlanBuilder queryPlanBuilder, QueryEngine queryEngine, IQueryResultFactory queryResultFactory) { _queryParser = queryParser; _queryPlanBuilder = queryPlanBuilder; _queryEngine = queryEngine; _queryResultFactory = queryResultFactory; }
protected ModbusDataProvider(IQueryResultFactory queryResultFactory) { _queryResultFactory = queryResultFactory; if (_queryResultFactory == null) { _queryResultFactory = StaticContainer.Container.Resolve <IQueryResultFactory>(); } }
public ModbusTcpConnection(IQueryResultFactory queryResultFactory, ILocalizerService localizerService) : base( queryResultFactory) { _queryResultFactory = queryResultFactory; _localizerService = localizerService; Port = PORT_DEFAULT; IpAddress = IP_DEFAULT; }
public virtual void InitializeFromContainer(IUnityContainer container) { _queryResultFactory = container.Resolve <IQueryResultFactory>(); _isInitialized = true; }
public ModBusRtuConnection(IComConnectionManager connectionManager, ITypesContainer container, ILocalizerService localizerService, IComPortConfigurationFactory comPortConfigurationFactory, IQueryResultFactory queryResultFactory) : base(queryResultFactory) { _connectionManager = connectionManager; _container = container; _localizerService = localizerService; _comPortConfigurationFactory = comPortConfigurationFactory; ComPortConfiguration = _comPortConfigurationFactory?.CreateComPortConfiguration(); if (_container == null) { _connectionManager = StaticContainer.Container.Resolve <IComConnectionManager>(); _container = StaticContainer.Container.Resolve <ITypesContainer>(); _localizerService = StaticContainer.Container.Resolve <ILocalizerService>(); _comPortConfigurationFactory = StaticContainer.Container.Resolve <IComPortConfigurationFactory>(); } }