Keyed Services Support in MvvmToolkit.Mvvm #800
Unanswered
Touseefelahi
asked this question in
Q&A
Replies: 1 comment
-
I think it's not implemented yet and would be nice to have, but in the meantime you can do it like this: var sp = IoC.Default.GetRequiredService<IServiceProvider>();
var service = sp.GetRequiredKeyedService<IUnitOfWork>("LocalDB"); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
How to use keyed services in my Avalonia Application?
I am trying to use the keyed services feature from .net 8, but it is not working for me.
This is what I have in my App.axaml.cs file
This is how I am trying to get the keyed service in some other class
This is the error that I am getting:
This service provider doesn't support keyed services.
Am I missing something here? or the feature is not implemented yet?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions