我的全球美金丝网连接了我所有的城堡登记等。
如果我需要请温莎直接解决一个接口(除了让它自动使用财产注入等)?
Is it possible to do:
container.Resolve<ISomeThing>();
我的全球美加澳新集团:
private static IWindsorContainer _container = new WindsorContainer();
private static void BootstrapContainer()
{
_container = new WindsorContainer()
.AddFacility<TypedFactoryFacility>()
.Install(FromAssembly.This());
var controllerFactory = new WindsorControllerFactory(_container.Kernel);
ControllerBuilder.Current.SetControllerFactory(controllerFactory);
}
I m a bit confused how I can do this, and what kind of scope this access to Windsor will have? (I m assuming it will only work in my asp.net application classes??)