Beispiel #1
0
 public static string MvcRoutePath(this IMvcRouteInformation info, bool includeArea = true, bool includePageHandler = true) => includeArea?info.AreaPartPath() : string.Empty
     //+ aspNetCoreRoute.IsMvcRazorPage() ? aspNetCoreRoute.RazorPagePath() : aspNetCoreRoute.ControllerActionPartPath()
     //+ includePageHandler ? aspNetCoreRoute.RazorPageHandlerPartPath() : string.Empty
 ;
Beispiel #2
0
 public static string RazorPagePartPath(this IMvcRouteInformation info) => info.ControllerActionName + Path.AltDirectorySeparatorChar;
Beispiel #3
0
 public static string RazorPageHandlerPartPath(this IMvcRouteInformation info) => "?" + info.RazorPageHandlerName;
Beispiel #4
0
 public static bool IsMvcControllerView(this IMvcRouteInformation info) => info.ControllerActionName != null;
Beispiel #5
0
 public static bool IsMvcRazorPage(this IMvcRouteInformation info) => info.RazorPageViewEnginePath != null;
Beispiel #6
0
 public static string ControllerActionPartPath(this IMvcRouteInformation info) => info.ControllerPartPath() + info.ActionPartPath();
Beispiel #7
0
 public static string ActionPartPath(this IMvcRouteInformation info) => Path.AltDirectorySeparatorChar + info.ControllerActionName;
Beispiel #8
0
 public static string AreaPartPath(this IMvcRouteInformation info) => string.IsNullOrWhiteSpace(info.AreaName) ? string.Empty : Path.AltDirectorySeparatorChar + info.AreaName;