-
Notifications
You must be signed in to change notification settings - Fork 459
Open
Description
I'm trying to create a new IDependencyResolver. The problem is that in debug mode the Resolve method is not called. Tell me, maybe I don't understand something.
Here is a fragment of the container initialization code
WindsorContainer windsorContainer = new(new DefaultKernel(new AttributedDependencyResolver(), new NotSupportedProxyFactory()), new DefaultComponentInstaller());The essence of the situation is that the Initialize(...) method is called.
But calling the Resolve(...) method does not.
Complete code snippet
WindsorContainer windsorContainer = new(new DefaultKernel(new AttributedDependencyResolver(), new NotSupportedProxyFactory()), new DefaultComponentInstaller());
windsorContainer.Register(Component.For<IDemoClass>().ImplementedBy<DemoClass>().LifeStyle.Singleton);
IDemoClass demoClass = windsorContainer.Resolve<IDemoClass>();This does not throw any exceptions. And the line
windsorContainer.Resolve<IDemoClass>(); returns an instance of DemoClass.
Metadata
Metadata
Assignees
Labels
No labels