예제 #1
0
        public static void Main(string[] args)
        {
            var system = new DevicesEnvironment("ABC");

            system.RunMeasuringDevices();
            system.PrintMeasurements();
        }
예제 #2
0
            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();
            }