-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetDeviceLabelAsync doesn't work #9
Comments
I changed the method to async and I got it to work. Not sure why it didn't work with a non async method. |
@johndcollins glad you got it working but what to you mean a non-async method? The method is async |
I meant from a non async function. I tried to use it with the .Result after and it never returned. Same happens on the other functions. |
Yes don't ever use Task.Result in a multi threaded app. It can deadlock the application (as is likely what happened here) |
Ok, good to know. Thanks. In my list I wanted to show the Label of the light instead of the hostname. |
I'm trying the get the label of the device instead of just the Hostname, but the call to GetDeviceLabelAsync doesn't work. It just hangs and never returns.
The text was updated successfully, but these errors were encountered: