Exemplo n.º 1
0
 public override ICollection<RouteInfo> Process(ControllerTypesList controllerTypesList)
 {
     var collection = new List<RouteInfo>();
     foreach (var ct in controllerTypesList)
     {
         var attribute = (RestResourcesAttribute) ct.Attribute;
         collection.Add(new RouteInfo(){Controller = ct.ControllerType.Name.Replace("_controllerType", string.Empty)});
     }
     return collection;
 }
Exemplo n.º 2
0
        public override ICollection<RouteInfo> Process(ControllerTypesList controllerTypesList)
        {
            Guard.AssertExpression(() => controllerTypesList.Count() == 1);
            var collection = new List<RouteInfo>(controllerTypesList.Count);
            foreach (var record in controllerTypesList)
            {
                RegisterActionMethods(record);
            }

            return collection;
        }
 public override ICollection<RouteInfo> Process(ControllerTypesList controllerTypesList)
 {
     var collection = new List<RouteInfo>();
     foreach (var ct in controllerTypesList)
     {
         var attribute = (AreaRootControllerAttribute) ct.Attribute;
         var ri = new RouteInfo(attribute.Name);
         collection.Add(ri);
     }
     return collection;
 }
Exemplo n.º 4
0
 public abstract ICollection<RouteInfo> Process(ControllerTypesList controllerTypesList);
Exemplo n.º 5
0
 public override ICollection<RouteInfo> Process(ControllerTypesList controllerTypesList)
 {
     return null;
 }