0
IM은 NHibernate와 NCommon을 사용하며 StruceMap을 IOC로 사용하고 싶습니다. 누구도 NCommon을 StructureMap에 등록하는 방법을 모르십니까?NCommon을 StruceMap에 등록하는 방법은 무엇입니까?
여기에 NCommon에 대한 정보가 있습니다. 여기
https://github.com/riteshrao/ncommon/
방법의 성 윈저 함께 할 것입니다
foreach (var type in types)
container.Register(Component.For<IController>().ImplementedBy(type)
.LifeStyle.Transient
.Named(type.Name.Replace("Controller", "")));
var containerAdapter = new NCommon.ContainerAdapter.CastleWindsor.WindsorContainerAdapter(container);