Reuse existing Prism Container Registrations in an Microsoft.AspNetCore WebService #2892
Unanswered
dockerandy
asked this question in
General
Replies: 1 comment
-
It'd be pretty easy to implement IContainerRegistry around IServiceCollection. |
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
-
Dear Prism Team,
we have an existing Prism WPF Application with a lot of Service Registrations in Prim IContainerRegistry [override Methode protected override void RegisterTypes(IContainerRegistry containerRegistry)].
Is it possible to reuse this Prism Container Registrations in an Microsoft.AspNetCore WebService for Dependency Injection?
I have only found that you can reuse existing registrations in IServiceCollections in an PrismContainer (Methode Prism.Container.Extensions.RegisterServices().
or use a manual Resolving like this Way:
IMyService myService = containerExtension.Resolve<IMyService>();
Best Regards
Andy
Beta Was this translation helpful? Give feedback.
All reactions