Jun 12, 2009 at 9:15 AM
Edited Jun 12, 2009 at 9:26 AM
Ok, I'll elaborate a bit.
We've coded our own Unity wrapping supporting the usage of a predefined container hiearchy - each container is named and looked up when doing the actual resolving.
Currently we're doing something like this:
this.myThing = TDependencyResolver.Resolve<IMyDependent>("MyContainerName");
The "TDependencyResolver" being our wrapping class owning the container hiearchy ("container repository"). We do not support a fluent interface.
What we would like to do is:
public MyClass([Dependency("MyContainerNamer")] myThing)
this.myThing = myThing
The same principle applies to setters.