Skip to content
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

Compiler warning VSTHRD110 #50

Open
mstv opened this issue Dec 11, 2022 · 0 comments
Open

Compiler warning VSTHRD110 #50

mstv opened this issue Dec 11, 2022 · 0 comments

Comments

@mstv
Copy link

mstv commented Dec 11, 2022

The compiler (of the .NET SDK 6.0.402) warns about:

_running?.BeginGuiMacro("Status").WithParam(0).WithParam(value ? 1 : 2).ExecuteAsync();

warning VSTHRD110: Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method.

Just assign the returned Task instance to _?
Tough if this background task throws an exception, the application will be killed regardless if it has registered for AppDomain.CurrentDomain.UnhandledException.
(I have not checked the code whether that task handles all exceptions.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant