示例#1
0
        /// <summary>
        /// Starts
        /// </summary>
        public static void Start()
        {
            var container = IocManage.Initialize();

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