Exemplo n.º 1
0
        /// <summary>
        /// Starts
        /// </summary>
        public static void Start()
        {
            var container = IocManage.Initialize();

            //  var container = ObjectFactory.Container;
            GlobalConfiguration.Configuration.DependencyResolver = new SmDependencyResolver(container);
        }
Exemplo n.º 2
0
 public IDependencyScope BeginScope()
 {
     _container = IocManage.Initialize();
     return(new StructureMapScope(_container));
 }