public SensorHost(IClient client, SensorManager sensorManager) { this._client = client; this._sensorManager = sensorManager; Log = LogManager.GetCurrentClassLogger("SensorHost"); IsCodeLoaded = false; }
public SensorHost(string code, IClient client, SensorManager sensorManager) { this.code = code; this._client = client; this._sensorManager = sensorManager; Log = LogManager.GetCurrentClassLogger("SensorHost"); IsCodeLoaded = true; Compile(); }
public SensorHost(ISensor sensor, IClient client, SensorManager sensorManager) { this._client = client; this._sensorManager = sensorManager; this.sensor = sensor; Log = LogManager.GetCurrentClassLogger("SensorHost"); if (sensor.IsCompatibleWithCurrentRuntime()) { IsCodeLoaded = true; IsCompiled = true; } this.SensorIdentifier = sensor.GetSensorIdentifier().ToLower(); }