Registering an implementation that supports more than one interface #3007
Answered
by
thomasgalliker
MartinRobins
asked this question in
General
-
I have an interface that is inherited from another...
I then have an implementation...
Currently, I find that I have to register both interfaces in the container...
Is it possible for me to register this instance (or even just register as a singleton) the implementation for both interfaces at the same time or is this the best way to do it? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
thomasgalliker
Nov 15, 2023
Replies: 1 comment 1 reply
-
I think dryioc supports this with RegisterMany. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MartinRobins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think dryioc supports this with RegisterMany.