Esempio n. 1
0
 /// <summary>
 /// 增加组信息
 /// </summary>
 /// <param name="route"></param>
 /// <param name="routed"></param>
 protected void ComplieOptionsGroup(IRoute route, Routed routed)
 {
     if (!string.IsNullOrEmpty(routed.Group))
     {
         route.Group(routed.Group);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 增加组信息
 /// </summary>
 /// <param name="route">路由条目</param>
 /// <param name="routed">路由特性</param>
 private void ComplieOptionsGroup(IRoute route, RoutedAttribute routed)
 {
     if (!string.IsNullOrEmpty(routed.Group))
     {
         route.Group(routed.Group);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// 增加组信息
 /// </summary>
 /// <param name="route">路由条目</param>
 /// <param name="routed">路由特性</param>
 private void ComplieOptionsGroup(IRoute route, RoutedAttribute routed)
 {
     if (!string.IsNullOrEmpty(routed.Group))
     {
         var segment = routed.Group.Split(',');
         foreach (var group in segment)
         {
             route.Group(group);
         }
     }
 }