public static void Main(string[] args) { var system = new DevicesEnvironment("ABC"); system.RunMeasuringDevices(); system.PrintMeasurements(); }
public void Run() { for (int i = 0; i < numOfMessages; i++) { var message = new Message { DeviceId = deviceId, Measurement = GetRandomMeasurement() }; monitor.AddMessage(message); Thread.Sleep(frequency); } DevicesEnvironment.SingnalCountdown(); }