예제 #1
0
파일: AsyncPage.cs 프로젝트: liaoyu45/LY
        private object MatchHashCode(string key)
        {
            var args = key.Split('.').Select(int.Parse).ToArray();

            return(Him.Invoke(args[0], args[1]));
        }
예제 #2
0
파일: AsyncPage.cs 프로젝트: liaoyu45/LY
        private object MatchPath(string key)
        {
            var all = HttpContext.Current.Request.Path.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries).Skip(1);

            return(Him.Invoke(all.Take(all.Count() - 1).Aggregate(string.Empty, (s, ss) => s + '.' + ss).Trim('.'), all.Last()));
        }