Beispiel #1
0
        public bool IsTermination(Page page, BaseTargetUrlsBuilder builder)
        {
            if (string.IsNullOrEmpty(page?.Content))
            {
                return(false);
            }

            return(!Contents.All(c => page.Content.Contains(c)));
        }
Beispiel #2
0
        public bool IsTermination(Page page, BaseTargetUrlsBuilder builder)
        {
            if (string.IsNullOrEmpty(page?.Content))
            {
                return(false);
            }
            var current      = builder.GetCurrentPagger(page.Request.Method == HttpMethod.Get ? page.Url : page.Request.PostBody);
            int currentIndex = int.Parse(RegexUtil.NumRegex.Match(current).Value);

            return(currentIndex >= Limit);
        }