public object FeedJob(string pages) { try { var node = ServerManager.Get(Request.RequestUri.Authority); if (node.NodeType == Node.NodeTypeEnum.FEEDPROXY) { var ps = pages.Split(',').Select(m => Convert.ToInt32(m)).ToArray(); var feeds = FeedLiteDb.GetFeedModels(ps, 50); feeds.RemoveAll(m => m.Status == FeedStatus.OFF); var compile = new CompileFeedAddress(); foreach (var feed in feeds) { feed.Address = compile.Compile(feed.Address); } return(feeds); } } catch { } return(new { }); }
public object Feeds(int offset, int limit, string key, string method, string type, string status) { var paging = new Paging(); paging.CurrentPage = (offset / limit) + 1; paging.PageSize = limit; return(new { rows = FeedLiteDb.GetFeedModels(paging, key, method, type, status), total = paging.Count }); }
public object GetFeedJob(string pages) { try { var ps = pages.Split(',').Select(m => Convert.ToInt32(m)).ToArray(); var feeds = FeedLiteDb.GetFeedModels(ps, 50); return(feeds); } catch { } return(new { }); }
public object Feeds(int offset, int limit) { var node = ServerManager.Get(Request.RequestUri.Authority); if (node.NodeType == Node.NodeTypeEnum.FEEDPROXY) { var paging = new Paging(); paging.CurrentPage = (offset / limit) + 1; paging.PageSize = limit; return(new { rows = FeedLiteDb.GetFeedModels(paging), total = paging.Count }); } return(new { }); }
public object FeedJob(string pages) { try { var node = ServerManager.Get(Request.RequestUri.Authority); if (node.NodeType == Node.NodeTypeEnum.FEEDPROXY) { var ps = pages.Split(',').Select(m => Convert.ToInt32(m)).ToArray(); var feeds = FeedLiteDb.GetFeedModels(ps, 50); feeds.RemoveAll(m => m.Status == FeedStatus.OFF); return(PreProcessUrl(feeds)); } } catch { } return(new { }); }