示例#1
0
        public SensorHost(IClient client, SensorManager sensorManager)
        {
            this._client        = client;
            this._sensorManager = sensorManager;

            Log = LogManager.GetCurrentClassLogger("SensorHost");

            IsCodeLoaded = false;
        }
示例#2
0
        public SensorHost(string code, IClient client, SensorManager sensorManager)
        {
            this.code           = code;
            this._client        = client;
            this._sensorManager = sensorManager;

            Log = LogManager.GetCurrentClassLogger("SensorHost");

            IsCodeLoaded = true;

            Compile();
        }
示例#3
0
        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();
        }