public static void SetLuminosity(Guid environmentId, float luminosityOffset) { double environmentConditionValue = EnvironmentSimulator.GetEnvironmentMeasures(environmentId).Luminosity; EnvironmentChangeItem item = new EnvironmentChangeItem(environmentId, luminosityOffset, environmentConditionValue); ThreadPool.QueueUserWorkItem(new WaitCallback(EnvironmentSimulator.SetLuminosityThread), item); }
public static void SetTemperature(Guid environmentId, float temperatureOffset) { double environmentConditionValue = EnvironmentSimulator.GetEnvironmentMeasures(environmentId).Temperature; EnvironmentChangeItem item = new EnvironmentChangeItem(environmentId, temperatureOffset, environmentConditionValue); ThreadPool.QueueUserWorkItem(new WaitCallback(EnvironmentSimulator.SetTemperatureThread), item); }