Ejemplo n.º 1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            IoCConfig.RegisterIoCEntities();
        }
Ejemplo n.º 2
0
        public static void Initialize()
        {
            IoCConfig.RegisterPreStartIoCEntities();

            //TODO : Create folders if not exist
            //Set plugin
            PluginManager.Instance.SetContext(new PluginManagerContext(
                                                  IoCManager.Instance.ResolveIfRegistered <IUserClaimsManager>(),
                                                  new DirectoryInfo(HostingEnvironment.MapPath("~/plugins")),
                                                  new DirectoryInfo(HostingEnvironment.MapPath("~/plugins/temp"))));

            PluginManager.Instance.InitializePlugins();
        }