Castle Windsor Dependency Injection - restore dependencies for existing instance
问题 I have a fairly straight-forward scenario that I am trying to solve but I'm hitting a few brick walls with Windsor - perhaps I'm trying to solve the problem in wrong way? I have a type called Foo as follows: public class Foo { [NonSerialized] private IBar bar; public IBar Bar { get { return this.bar; } set { this.bar = value; } } public Foo(IBar bar) { } } I instantiate via the container in the normal way: var myFoo = container.Resolve<Foo>(); The dependency IBar is registered with the