src/EasyFrameWork/Mvc/Route/RouteDescriptor.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/* http://www.zkea.net/
* Copyright (c) ZKEASOFT. All rights reserved.
* http://www.zkea.net/licenses */
namespace Easy.Mvc.Route
{
public class RouteDescriptor
{
public RouteDescriptor()
{
}
public RouteDescriptor(string routeName, string template)
{
this.Priority = 1;
this.RouteName = RouteName;
this.Template = template;
}
public RouteDescriptor(string routeName, string template, object defaults)
{
this.Priority = 1;
this.RouteName = RouteName;
this.Template = template;
this.Defaults = defaults;
}
public RouteDescriptor(string routeName, string template, object defaults,object constraints)
{
this.Priority = 1;
this.RouteName = RouteName;
this.Template = template;
this.Defaults = defaults;
this.Constraints = constraints;
}
public RouteDescriptor(string routeName, string template, object defaults, object constraints, object dataTokens)
{
this.Priority = 1;
this.RouteName = RouteName;
this.Template = template;
this.Defaults = defaults;
this.Constraints = constraints;
this.DataTokens = dataTokens;
}
public RouteDescriptor(string routeName, string template, object defaults, object constraints, object dataTokens, int priority)
{
this.Priority = priority;
this.RouteName = RouteName;
this.Template = template;
this.Defaults = defaults;
this.Constraints = constraints;
this.DataTokens = dataTokens;
}
/// <summary>
/// 优先级,数值越大,优先级越高。
/// </summary>
public int Priority { get; set; }
public string RouteName { get; set; }
public string Template { get; set; }
public object Defaults { get; set; }
public object Constraints { get; set; }
public object DataTokens { get; set; }
后面还有 4 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。