class A {
public A(string name) { }
}
class B {
public B() {
_a = new A(typeof(B).Name);
}
}
Basically, that's what I'm trying to accomplish. B has a dependency
on A, but I'd like A's name to be injected with the class name of B.
So it's sort of like a circular dependency, but not directly.
ServiceOverrides, DependsOn, and DynamicProperties don't have any
information about who is requesting the component. The Factory
facility supplies the CreationContext, but if I use that then I need
to manually bake in other built-in features like interceptors.
Short of writing a sub resolver is there a way to do what I want with
fluent configuration? Thanks.
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.