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); } }
/// <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); }
protected virtual void OnControllersResolved(ControllersResolvedEventArgs e) { EventHandler<ControllersResolvedEventArgs> handler = ControllersResolved; if (handler != null) { handler(this, e); } }