Utilizing Splat with MS.Extensions.DependencyInjection #8588
Answered
by
maxkatz6
Jeremy-Code-F
asked this question in
Q&A
-
Hi, I'm trying to setup Dependency injection with Splat since it is already installed with Avalonia. I've been trying to follow this but hit some issues. My App.axaml.cs looks like
That works fine and the application window opens and seems to work, my issue comes in at a button that tries to use an injected IHttpClientFactory...
When the Button_OnClick function runs I get an error message,
any idea what I am missing in this setup? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
maxkatz6
Jul 24, 2022
Replies: 1 comment 3 replies
-
It seems exception is pretty clear. Why would you need to dispose host before using it? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Jeremy-Code-F
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems exception is pretty clear. Why would you need to dispose host before using it?