public ModbusService(IDataPointRepository dataPointRepository,
                             IDataPointHistoryDataRepository dataPointHistoryDataRepository)
        {
            this.dataPointRepository            = dataPointRepository;
            this.dataPointHistoryDataRepository = dataPointHistoryDataRepository;
            InitializeTimer();

            Run();
        }
Beispiel #2
0
        public DataPointHistoryDataService(IDataPointHistoryDataRepository dataPointHistoryDataRepository,
                                           //IDataPointRepository dataPointRepository,
                                           //IModuleRepository moduleRepository,
                                           IUnitOfWork unitOfWork)
        {
            this.dataPointHistoryDataRepository = dataPointHistoryDataRepository;
            //_dataPointRepository = dataPointRepository;
            //_moduleRepository = moduleRepository;
            this.unitOfWork = unitOfWork;

            InitializeTimer();
        }