Esempio n. 1
0
        private object MatchHashCode(string key)
        {
            var args = key.Split('.').Select(int.Parse).ToArray();

            return(Him.Invoke(args[0], args[1]));
        }
Esempio n. 2
0
        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()));
        }