public Monitor(ConnectionInformation connectionInformation, int sensorId)
 {
     if (connectionInformation == null)
         throw new ArgumentNullException("connectionInformation", "connectionInformation is required.");
     _connectionInformation = connectionInformation;
     _sensorId = sensorId;
 }
 public MonitoringWorker(ConnectionInformation connectionInformation, int sensorId) : base(TimeSpan.FromSeconds(10))
 {
     _monitor = new Monitor(connectionInformation, sensorId);
 }