Repository navigation
How to integrate with Microsoft.Extensions.DependencyInjection and WPF before Application object is created #1729
glen-nicol
started this conversation in
Ideas
Replies: 2 comments 1 reply
|
I would still like to hear other ideas, but I was able to solve this by forking this function to use a custom |
0 replies
|
Hmm. Let's make a issue out of this one to provide support for your scenario. I'm doing a big bug fix and removing the out of support .net versions this weekend so can tackle it then. |
1 reply
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.
Hello, I am following the docs on how to integrate with a Microsoft generic host. I think I have everything setup properly and am getting an error likely because my situation is perhaps a bit different than the assumptions for this library.
My generic host is setup before the WPF Application object is created and I inject the host into the application for resolving the services. When I call the following function to configure my host to connect the Splat DI to the MS DI, I get an IOE.
I also tried something like this to create the RX app once needed inside the Application. But as expected it tries to reconfigure the Host's service collection after its been built and I get another IOE.
Any tips on how to proceed would be very much appreciated!
All reactions