Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PollingConnector"/> class.
        /// </summary>
        /// <param name="config">The polling connector configuration.</param>
        /// <param name="dataAccess">The data source to poll data from.</param>
        /// <param name="checkpoint">The checkpoint object to start polling data since.</param>
        /// <param name="pusher">The Bing for Commerce data pusher.</param>
        public PollingConnector(PollingConnectorConfig config, IDataReader dataAccess, IDataCheckpoint checkpoint, IDataPusher pusher)
        {
            this.config     = config;
            this.pusher     = pusher;
            this.db         = dataAccess;
            this.checkpoint = checkpoint;

            log.Debug($"Successfully created the polling connector.");
        }
        public Pusher(ITimer timer, IDateTime dateTime, DataPusherConfiguration configuration, ILocalRecordRepository repository, IDataPusher remotePusher)
        {
            _timer        = timer;
            _dateTime     = dateTime;
            _config       = configuration;
            _repo         = repository;
            _remotePusher = remotePusher;

            _timer.Tick += TimerOnTick;
        }
Beispiel #3
0
 public ServiceWorker(IOpisenseOpcConfigurationFactory opcConfigurationFactory, IOpisenseOpcConnectorFactory opcConnectorFactory, IDataPusher dataPusher)
 {
     this.opcConfigurationFactory = opcConfigurationFactory;
     this.opcConnectorFactory     = opcConnectorFactory;
     this.dataPusher = dataPusher;
 }