TestPlugin.cs 783 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using GreenTree.Nachtragsmanagement.Core.Plugins;
  7. using System.Web.Mvc;
  8. using System.Web.Routing;
  9. namespace GreenTree.Nachtragsmanagement.Plugin.Test
  10. {
  11. public class TestPlugin : BasePlugin, IPlugin
  12. {
  13. public override void Install()
  14. {
  15. RouteTable.Routes.MapRoute(
  16. name: "Default", // Route name
  17. url: "{controller}/{action}", // URL with parameters
  18. defaults: new { controller = "Test", action = "Index" } // Parameter defaults
  19. );
  20. base.Install();
  21. }
  22. public override void Uninstall()
  23. {
  24. base.Uninstall();
  25. }
  26. }
  27. }