Ejemplo n.º 1
0
        private static async Task SimpleAsyncStreamAsync()
        {
            var aDevice = new ADevice();

            await foreach (var x in aDevice.GetSensorData())
            {
                Console.WriteLine($"{x.Value1} {x.Value2}");
            }
        }
Ejemplo n.º 2
0
        static async Task Main()
        {
            var aDevice = new ADevice();

            await foreach (var x in aDevice.GetSensorData())
            {
                Console.WriteLine($"{x.Value1} {x.Value2}");
            }
        }