예제 #1
0
        void resolver_ControllersResolved(object sender, ControllersResolvedEventArgs e)
        {
            logControllers(e.SiteKey, e.ControllerTypes);

            findAjaxMethods(e.ControllerTypes.Values);

            findRoutes(e.SiteKey, e.ControllerTypes);
        }
예제 #2
0
        protected virtual void OnControllersResolved(ControllersResolvedEventArgs e)
        {
            EventHandler <ControllersResolvedEventArgs> handler = ControllersResolved;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #3
0
        /// <summary>
        /// set site's mvc controller types
        /// </summary>
        /// <param name="siteKey"></param>
        /// <param name="controllers"></param>
        public void SetSiteControllers(string siteKey, Dictionary <string, Type> controllers)
        {
            controllerTypes[siteKey] = controllers;

            ControllersResolvedEventArgs e = new ControllersResolvedEventArgs();

            e.ControllerTypes = controllers;
            e.SiteKey         = siteKey;

            OnControllersResolved(e);
        }
        /// <summary>
        /// set site's mvc controller types
        /// </summary>
        /// <param name="siteKey"></param>
        /// <param name="controllers"></param>
        public void SetSiteControllers(string siteKey, Dictionary<string, Type> controllers)
        {
            controllerTypes[siteKey] = controllers;

            ControllersResolvedEventArgs e = new ControllersResolvedEventArgs();
            e.ControllerTypes = controllers;
            e.SiteKey = siteKey;

            OnControllersResolved(e);
        }
        void resolver_ControllersResolved(object sender, ControllersResolvedEventArgs e)
        {
            logControllers(e.SiteKey, e.ControllerTypes);

            findAjaxMethods(e.ControllerTypes.Values);

            findRoutes(e.SiteKey, e.ControllerTypes);
        }
        protected virtual void OnControllersResolved(ControllersResolvedEventArgs e)
        {
            EventHandler<ControllersResolvedEventArgs> handler = ControllersResolved;

            if (handler != null)
            {
                handler(this, e);
            }
        }