public ActionResult Index() { return(base.ExecuteFunction("Index", delegate() { IPluginManager pluginManager = this.IFoundation.GetPluginManager(); IWebPluginLoader webPluginLoader = this.IFoundation.Resolve <IWebPluginLoader>(); PluginInfo result = new PluginInfo(); result.FoundationPlugins = pluginManager.FoundationPlugins.ToList(); result.WebPlugins = webPluginLoader.GetRegisteredPlugins().ToList(); return View(result); })); }
public static void RegisterRoutes(RouteCollection routes) { // Foundation: Step 2b IWebPluginLoader pluginLoader = CoreFoundation.Current.Resolve <IWebPluginLoader>(); pluginLoader.RegisterPluginRoutes(routes); routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); }