My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 98: Support named registrations for open generics (was: Support decorators for open generic types)
  Back to list
Status:  Accepted
Owner:  nicholas.blumhardt
Type-Enhancement
Priority-Medium
Milestone-Release2.1


Sign in to add a comment
 
Reported by nicholas.blumhardt, Mar 10, 2009
Because named registrations do not carry type information it is not 
possible to create decorators over open generic types. Similarly types like 
Owned<T>, Nullable<T>, Lazy<T> and IEnumerable<T> can only be implemented 
automatically in IRegistrationSource for typed services.

By packaging type information in NamedService, it will be possible to 
support these features for named as well as typed services.

Comment 1 by nicholas.blumhardt, Mar 10, 2009
(No comment was entered for this change.)
Labels: -Priority-Medium Priority-High
Comment 2 by nicholas.blumhardt, Aug 01, 2009
Added test case in r571 demonstrating how this can be done using ResolvedParameter for 
a subset of scenarios in Autofac 1.4.

Needs more work in order to support named registrations, but the decorator chain 
functionality is there.

Reducing priority and renaming.
Summary: Support named registrations for open generics (was: Support decorators for open generic types)
Labels: -Priority-High Priority-Medium
Comment 3 by nicholas.blumhardt, Sep 13, 2009
(No comment was entered for this change.)
Labels: -Milestone-Release2.0 Milestone-Release2.1
Sign in to add a comment

Hosted by Google Code