예제 #1
0
파일: Program.cs 프로젝트: girish66/REM
        private static void ConfigureServiceLocator(IContainer container)
        {
            var structureMapPillarContainer = new Pillar.IoC.StructureMap.Container(container);

            IoC.SetContainerProvider(() => structureMapPillarContainer);
            container.Configure(c => c.For <Pillar.Common.InversionOfControl.IContainer> ().Singleton().Use(IoC.CurrentContainer));
        }
예제 #2
0
파일: Program.cs 프로젝트: divyang4481/REM
 private static void ConfigureServiceLocator( IContainer container )
 {
     var structureMapPillarContainer = new Pillar.IoC.StructureMap.Container ( container );
     IoC.SetContainerProvider ( () => structureMapPillarContainer );
     container.Configure ( c => c.For<Pillar.Common.InversionOfControl.IContainer> ().Singleton ().Use ( IoC.CurrentContainer ) );
 }