My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 102: RegistrationBuilder and ContainerBuilder update
2 people starred this issue and may be notified of changes. Back to list
Status:  Started
Owner:  nicholas.blumhardt
Type-Enhancement
Priority-High
Milestone-Release2.1


Sign in to add a comment
 
Reported by nicholas.blumhardt, Mar 10, 2009
Creating an IComponentRegistration using the Registration class is a vastly 
different experience to that of registering a component using 
ContainerBuilder.

Proposal is that a series of helper classes are created:

var instance = "Hello!";
var registration = new InstanceRegistrationBuilder<string>(instance)
                 .As<object>()
                 .Named("foo")
                 .Build();

Careful crafting of these types will let them power ContainerBuilder and 
enable cleanup of the Registrar types (which really need to go.)

Additional goals should be to carry type information through the fluent 
interface.

This is particularly relevant to dynamic registration sources. E.g. anyone 
implementing IRegistrationSource needs to be able to create registrations 
simply and on-the-fly.
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, Sep 13, 2009
Underlying types added in r606.

Need to add higher-level APIs to guide use of RegistrationBuilder and 
RegistrationExtensions.CreateSingle.....().
Status: Started
Comment 3 by nicholas.blumhardt, Sep 13, 2009
(No comment was entered for this change.)
Labels: -Milestone-Release2.0 Milestone-Release2.1
Comment 4 by nicholas.blumhardt, Sep 13, 2009
The APIs to consider are RegisterSingleComponent and CreateRegistration.
Sign in to add a comment

Hosted by Google Code