コード例 #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();
            }