Beispiel #1
0
        public static void RegisterRoutes(this PluginContainer pluginContainer, RouteCollection routes)
        {
            RouteList pluginRoutes = new RouteList();

            pluginContainer.ExecuteMethod("RegisterRoutes", pluginRoutes);

            pluginRoutes.ForEach(r => routes.Add(pluginContainer.GetRouteName(r.MethodName), new PluginRoute(((Plugin)pluginContainer.Tag).ID, r.MethodName, r.Url, r.MergeWithDefaults(new { controller = "Plugin", action = "CallMethod" }), r.MergeWithConstraints(null))));
        }