Пример #1
0
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

            if (HostingEnvironment.IsHosted)
            {
                var easymanProvider = new EasyManViewVirtualPathProvider();
                HostingEnvironment.RegisterVirtualPathProvider(easymanProvider);
            }



            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(new EasyManViewEngine());
            DatabaseRegister.InitDataBase();
        }