| Issue 102: | RegistrationBuilder and ContainerBuilder update | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
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.
|
||||||||||
,
Mar 10, 2009
(No comment was entered for this change.)
Labels: -Priority-Medium Priority-High
|
|||||||||||
,
Sep 13, 2009
Underlying types added in r606. Need to add higher-level APIs to guide use of RegistrationBuilder and RegistrationExtensions.CreateSingle.....().
Status: Started
|
|||||||||||
,
Sep 13, 2009
(No comment was entered for this change.)
Labels: -Milestone-Release2.0 Milestone-Release2.1
|
|||||||||||
,
Sep 13, 2009
The APIs to consider are RegisterSingleComponent and CreateRegistration. |
|||||||||||
|
|
|||||||||||