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

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