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);