Replies: 3 comments
-
Still waiting for an answer. |
Beta Was this translation helpful? Give feedback.
-
Hi, sorry for the delay. I know we had added support for async .NET methods but then there were issues and we had to remove support. I'm not sure offhand if we've finished adding it back yet. Which version of the SDK and which version of the WebView2 Runtime are you using? Let me find someone who knows more about .NET async method support. |
Beta Was this translation helpful? Give feedback.
-
Hi,
This was possible in webBrowser Control. Anyway, fortunately we had a workaround to achieve the same without having to call scripts inside of a connected object's method. Answers to the above issues would be helpful for us in the future. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
.js
when demo() is called, result is null.
I spent some time looking into the code, looks like when SampleFunction() is invoked and as soon as
await mWebView.ExecuteScriptAsync(script1)
is executed in .cs file,console.log(result)
is executed in .js without even waiting for SampleFunction() in .cs to complete and return the finalValue.Besides,
await mWebView.ExecuteScriptAsync(script2)
doesn't give the expected value.Please let me know if i'm doing something wrong.
I need to wait until SampleFunction() in .cs is complete,returns the finalValue and then execute
console.log(result)
in .jsWould be of great help if you could let me know how to do that. Thank you :)
.cs
Beta Was this translation helpful? Give feedback.
All reactions