Replies: 1 comment
-
Sorry for not getting back to you sooner, were you able to solve your issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
First time trying avalonia, coming from WPF.
How do you go about registering services that require an async call? i.e. retrieving values from cloud/APIs.
I was trying to do all these in app.axaml.cs, by overriding OnInitialize() and RegisterTypes().
Doing this at the very start as I saw that we register and setup services and viewmodels here.
Sample #1:
Sample #2:
From these two samples, i've reached variations that:
Any insights, recommendations will be greatly appreciated!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions