Hi,
You can do this on line 3:
List<Device> devices = await GetDevices();
Then you don't need line 4 and simple have:
Console.WriteLine(devices.GetType());
Console.WriteLine("Hello");
I think this should work.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello
Can anyone please tell me why the code on lines 7 & 9 does not get executed?
I'm basically pulling back a list of devices using the LogicMonitor SDK and there is no synchronous version of GetAllAsync (in the SDK) .
This is a cut-down version of my code in VS2022 which also does not execute after the line 5.
Is there a better/proper way to do this?
Thanks
Hi,
You can do this on line 3:
List<Device> devices = await GetDevices();
Then you don't need line 4 and simple have:
Console.WriteLine(devices.GetType());
Console.WriteLine("Hello");
I think this should work.