This repository was archived by the owner on Sep 15, 2024. It is now read-only.
From Mark Novak #2
Unanswered
densen2014
asked this question in
Q&A
Replies: 2 comments 1 reply
|
A1: maybe is exception from OnResult.Invoke A2: because is a delegate A3: Delegate demo in https://blazor.app1.es/geolocations source code so |
1 reply
|
Because in another project of mine, the coordinates are constantly being tracked, so it is a collection. I need to connect into a track ..Densen informatica在 2023年2月10日,21:50,Mark Novak ***@***.***> 写道:
Thanks a lot! Clears it up.
One more question: why does the OnCallbackEvent implementation in the code behind Razor component save it first to an object field, and then only to the first index?
Is that a performance improvement?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context: geolocation.js and Geolocations.razor.cs
In file 1, function line 62 updateLocation at the end of the function, it invokes a method in the file 2 called GetResult and passes the object of Geolocationitem onto the method. It tries to execute awaitable Func with Invoke.
Question 1:
What possible exception is it trying to catch?
Question 2: why does the sample code provided in the README.md return a Task.CompletedTask to OnResult?
Question 2a: is Task.CompletedTask return necessary?
Question 3: what was the idea behind implementing returning an object in such way?
All reactions