My question is probably terrible, but here's what I'm trying to do using Castle Windsor in pseudo-code:
Register IFoo as Foo
Register IBar as Bar
When IFoo Is Passed Into a constructor And Being Resolved to Foo:
Resolve IBar to Bar And pass typeof(Foo) to IBar.Create() method
[ Resolve<IBar>().Create(typeof(Foo)) ]
The goal is that anytime I try to use IFoo as a dependency, I want to pass the implementation of IFoo (Foo)'s TYPE into a method on IBar - which will do some work to new up an instance of Foo and hydrate the Foo POCO.
Any ideas?