public QueryRunner(QueryParser queryParser, QueryPlanBuilder queryPlanBuilder, QueryPlanExecutor queryPlanExecutor, IQueryResultFactory queryResultFactory)
		{
			_queryParser = queryParser;
			_queryPlanBuilder = queryPlanBuilder;
			_queryPlanExecutor = queryPlanExecutor;
			_queryResultFactory = queryResultFactory;
		}
示例#2
0
 public QueryRunner(QueryParser queryParser, QueryPlanBuilder queryPlanBuilder, QueryEngine queryEngine, IQueryResultFactory queryResultFactory)
 {
     _queryParser        = queryParser;
     _queryPlanBuilder   = queryPlanBuilder;
     _queryEngine        = queryEngine;
     _queryResultFactory = queryResultFactory;
 }
 public QueryRunner(QueryParser queryParser, QueryPlanBuilder queryPlanBuilder, QueryEngine queryEngine, IQueryResultFactory queryResultFactory)
 {
     _queryParser = queryParser;
     _queryPlanBuilder = queryPlanBuilder;
     _queryEngine = queryEngine;
     _queryResultFactory = queryResultFactory;
 }
 public QueryRunner(QueryParser queryParser, QueryPlanBuilder queryPlanBuilder, QueryPlanExecutor queryPlanExecutor, IQueryResultFactory queryResultFactory)
 {
     _queryParser        = queryParser;
     _queryPlanBuilder   = queryPlanBuilder;
     _queryPlanExecutor  = queryPlanExecutor;
     _queryResultFactory = queryResultFactory;
 }
示例#5
0
 protected ModbusDataProvider(IQueryResultFactory queryResultFactory)
 {
     _queryResultFactory = queryResultFactory;
     if (_queryResultFactory == null)
     {
         _queryResultFactory = StaticContainer.Container.Resolve <IQueryResultFactory>();
     }
 }
示例#6
0
        public ModbusTcpConnection(IQueryResultFactory queryResultFactory, ILocalizerService localizerService) : base(
                queryResultFactory)
        {
            _queryResultFactory = queryResultFactory;
            _localizerService   = localizerService;

            Port      = PORT_DEFAULT;
            IpAddress = IP_DEFAULT;
        }
示例#7
0
 public virtual void InitializeFromContainer(IUnityContainer container)
 {
     _queryResultFactory = container.Resolve <IQueryResultFactory>();
     _isInitialized      = true;
 }
示例#8
0
        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>();
            }
        }