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; }
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; }
public abstract ICollection<RouteInfo> Process(ControllerTypesList controllerTypesList);
public override ICollection<RouteInfo> Process(ControllerTypesList controllerTypesList) { return null; }