-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow registration of multiple interfaces for one type #33
Labels
enhancement
New feature or request
FluentRegistration
Issues or features related to the FluentRegistration
IocContainer
Issues or features related to the IocContainer
Projects
Milestone
Comments
For |
SimonG96
added a commit
that referenced
this issue
Dec 7, 2019
SimonG96
added a commit
that referenced
this issue
Dec 11, 2019
Needed to handle OnCreateActions from inheriting types later on
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
SimonG96
added a commit
that referenced
this issue
Dec 14, 2019
Add
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
FluentRegistration
Issues or features related to the FluentRegistration
IocContainer
Issues or features related to the IocContainer
Allow the registration of multiple interfaces for one registered type, e.g.:
The interface
is implemented by
Users may want to get a
IBar
or aIFoo
and both times need the implementing typeFoo
.The registration should look something like this:
For registrations with
Lifestyle.Transient
this could be done by callingIIocContainer.Register<>()
multiple times:What can be done for registrations with
Lifestyle.Singleton
? EveryResolve<>()
call has to return the same instance of the implemented type.The text was updated successfully, but these errors were encountered: