public SensorDataReceiver(ILogger <SensorDataReceiver> logger, ISensorData sensorData, IOptions <SensorDataOptions> options)
        {
            _logger     = logger;
            _sensorData = sensorData;
            _options    = options.Value;
            _bufferPool = ArrayPool <byte> .Create(
                maxArrayLength : SensorDataConstants.SensorDataSize,
                maxArraysPerBucket : _options.BufferPoolSize);

            _stateLock = new object();
        }
Beispiel #2
0
 public SensorDataProcessor(
     ILogger <SensorDataProcessor> logger,
     ISensorDataReceiver sensorDataReceiver,
     ISensorData sensorData,
     ISensorDataWriter writer,
     ISensorDataUtil sensorDataUtil,
     IOptions <SensorDataOptions> options)
 {
     _logger             = logger;
     _sensorDataReceiver = sensorDataReceiver;
     _sensorData         = sensorData;
     _writer             = writer;
     _sensorDataUtil     = sensorDataUtil;
     _options            = options.Value;
 }